Android :: Unresolvable References - Paused Analog Clock
Mar 14, 2010
I need to create paused analog clock. Since I have never done any graphics/drawing before I am customizing Analogue widget defined in the core/java/android/widget.
The problem is when I create the class in my project following are the unresolved references: mContext com.android.internal.R mRight mLeft mTop mBottom
I know the most likely cause is com.android.internal is private and I need to use public but the problem I do not know what the public equivalent is. I have tried substituing it with android.R but that doesn't seem work either.
View 2 Replies
Mar 10, 2010
My application needs to display the time. Rather then displaying time as 11:00 I am wondering whether it is possible to have to have static/paused/stopped analogue clock showing 11' o clock?
View 1 Replies
View Related
Jan 31, 2010
Is there a way to get the 2.1 Analog Clock without rooting? I don't think it comes with Launcher2, but I was just curious because I like the look of it.
View 2 Replies
View Related
Jan 22, 2010
Does the small analog clock (#2 in the HTC clock widgets) still have issues with it showing the wrong time? Or is it just my phone? It shows the right location, but the time is 6 hours off
View 10 Replies
View Related
Aug 28, 2010
Is it anyway to put analog clock on front home screen?
View 11 Replies
View Related
Sep 28, 2009
I'm working on an Android Application for AutiPlan, which is a web-based planner tool for people with an Autism-related disorder.I want to create an application which shows the current activity (planned item), together with a clock. (AnalogClock) On this clock, I want to paint a red background from the current-minute to the minute at which the activity ends. To clarify, if it is now 12:00 and the current activity ends at 12:15, the right-top quarter of the circle that makes out the analog clock is red. This has to be updated every minute, so that it is clear how much time is left for the current activity. (The red section gets smaller each minute). Also, (question 2) I want to use AnalogClock to display a small (stationary) clock with the time that the next activity starts. Can I set the time of the object so it displays a specific time?
View 1 Replies
View Related
Apr 9, 2009
Can Anybody Help In Making a Analog Clock in ,java File of android
View 2 Replies
View Related
Jul 6, 2010
how to develop android app with analog clock for different timezones.
View 1 Replies
View Related
Nov 29, 2009
I'll be getting a new Eris in a couple of weeks and am very excited!I have a question that is kind of random, but I have always liked the very cool 'flip' animation on the analog clock in the Sense UI when the time changes.I was watching this vid that compares the three 'Hero' phones and I noticed that the only phone that showed an animation was the original Hero. The other two did not actually flip when the number changed.Can the flip animation be turned on and off, or does the Eris simply not have a clock animation for some reason?
View 2 Replies
View Related
May 4, 2009
A main task and a secondary task - the secondary task has only one Activity - when that Activity is paused (e.g. Home key pressed), a notification is inserted to the Notification Bar, so that the user can go back to it (such as voice call does) My problem is: I need the paused Activity to receive key events. 1) Is that possible? 2) If so, how? (I have already tried setting "takeKeyEvents(true)", but whenever I press a key, the "Bookmarks" activity comes to the foreground)..
View 17 Replies
View Related
Jun 20, 2010
In one of my Activities I have a ListView that displays a list of locations. For each list item I want a little arrow icon that points in the direction of the corresponding location. I implemented this icon by extending ImageView. This custom View has a listener that reacts to changes of the device's orientation by rotating the icon image accordingly. I register the listener in the onAttachedToWindow() method and unregister it in onDetachedFromWindow(). This kind of works but the problem is that onDetachedFromWindow() sometimes gets called only a long time after the containing Activity has paused. Also, the whole layout overall seems a little hacky. So my question is: Is there a proper way to unregister the listeners or would you implement this in a completely different way to begin with?
View 1 Replies
View Related
Dec 20, 2009
I wanna know how to pass data from current Activity to paused Activity?
View 3 Replies
View Related
Apr 20, 2010
I have a static Preferences class that hold some application preferences and stuff like that. Is it ok to store reference to ApplicationContext there? I need that reference so i can get cache folder and stuff like that in classes that don't inherit Activity.
View 1 Replies
View Related
Aug 11, 2010
There's a bug in my network code so that when the server's not available the Android client tries over and over to connect. On 1.5 (emulator) this results, within a minute, in an "Excessive JNI global references" error where the leaked object is a small (20 byte) boolean array. The same code on emulated 2.1 runs for as long as my patience lasts. Is there any possibility the leak is in my code and not an Android bug that's been fixed since 1.5?
View 2 Replies
View Related
Apr 20, 2014
I am using our country local brand walton primo gh2 phone. In notification area i see "Downloading English (US) ", under it download paused. First three or four time i tapped and hold and its took me to Language and input option and shows me that update and every time it stacked on 64%. after that when i again i tapped and hold it shows just app info nothing else and i cant remove it from my notification area. Its very annoying to see and some file goes to queue under it too download never start and i have to restart downloads. I am using android 4.2.2.
View 1 Replies
View Related
Nov 5, 2010
I wonder if it's possible to reference a XML string value in another XML String resource.But in case of an concated resource string, I found no solution yet,I would like to keep the string references in the string.xml file itself.
View 1 Replies
View Related
Jun 25, 2010
I'm writing some stuff in java and i ran into some problems lately. cut short, i need to compare an object i created to another instance of this very class i instantiazed before with different data.
looks like this:
CODE:........
with a class a:
CODE:..........
The problem is, that i end up finding out that the values from newA are always equal to those from oldA. so i guess sth went wrong with passing the references of the objects in the last line of the loop...i thought java always passes references of objects unless an explicit copy() is called? if this does matter: this code is running on android - don't know if the dalvik vm messes aroung with this...
View 5 Replies
View Related
Jul 21, 2010
I would like to add an HTML resource to my Android project with references to other resources (mainly drawables).
Where should I put it and how do I reference other resources from it?
Is there a particular way to pass the HTML resource to a WebView?
View 2 Replies
View Related
Jul 27, 2010
I've read that it is a mistake and a source of memory leaks in Android application to keep a long-lived references to a Context.
But I don't understand if it is ok to create an class that looks like this one:
CODE:..........
And call it from an Activity:
CODE:.................
View 2 Replies
View Related
Jul 14, 2010
Despite similar question was asked, I have differnet situation: My app consists mostly of a background Service. I want to start external activities and get results back.I see several options:Create dummy Activity and keep reference to it for using its startActivityForResult. This consumes quite a lot of memory, as we know. Use Broadcast Intents instead of Android's results infrastructure: ask client activities to broadcast their results before closing. This kind of breaks the idea and not so performance-efficient. Use Instrumentation directly - try to copy code from startActivityForResult into my Service. Use Service interfaces - serialize and add AIDL connection to the Intent for starting an Activity. In this case Activity should call Service directly instead of providing result. The third approach feels closer to Android for me, but I'm not sure if it's possible to do - Service does not have its Instrumentation, and default implementation seems to always return null.
View 1 Replies
View Related
May 11, 2010
I'm currently working on Android NDK, porting my libs, and I'm using SWIG (Simplified Wrapper and Interface Generator) that is a great tool to generate JNI code around my C/C++ headers for Java.
However, there is a big issue using it on Android, 'cause of incomplete JNI support : 'Weak Global References' are missing. Unfortunatly, SWIG is waiting for a full compatible Oracle/Sun JVM, and use this feature with its 'director' option (for proxy class creation).
For now, I comment each time, in a (kind of) bad way, the use of weak global references in my generated C/C++ wrapper files (4 lines in my case). I think it is really a shame that we can't use (one of) the best wrapper with Android NDK just for one missing feature.
I read that Google Team will add it in future release : "NewWeakGlobalRef and DeleteWeakGlobalRef are not implemented. The VM supports weak references, but not JNI "weak global" references. These will be supported in a future release." (http://android.git.kernel.org/?p=platform/ dalvik.git;a=blob_plain;f=docs/jni-tips.html;hb=HEAD)
So my question is, does anybody know when 'Weak Global References' will appear in Android NDK ?
View 4 Replies
View Related
Nov 24, 2010
I am working on a system on which currently Linux kernel and microwindows windowing system is running. Code of current Linux system drivers is available to me. I want to port android on it, just as a hobby project.
can you please tell me what all understanding of linux-kernel is required to port it?
Please give me references (Books, Tutorials) to build-up understandings.
View 3 Replies
View Related
Oct 27, 2010
I'm in the middle of implementing themes for my application right now, and everything's been going really smooth until as of late. I've been using the android:background="?thin_border" tag to provide a background for linearlayouts with items that I want visually grouped together. The problem I'm running into is when I try to use this tag in an xml with a custom class as one of the elements, and try to add this background tag.
I've got an xml file that looks generally like so:
CODE:.................
and the custom class has two constructors:
CODE:........
with some other functions that store values, manipulate the data, etc. The custom layout class is only ever called directly in the xml, and the xml is inflated like so:
CODE:...........
The problem I'm running into is that I'm getting these error messages:
CODE:.................
The error seems to be caused by the android:background="?thin_border" tag. If I remove it from the layout, it inflates fine, and the program continues on. As soon as I add it back in, I get these errors and the program stops.
View 2 Replies
View Related
Dec 8, 2009
I'm working on an application that requires non-serializable objects to be passed between Activities. The following page suggests using a HashMap of WeakReferences to accomplish this:
http://developer.android.com/guide/appendix/faq/framework.html
Is this solution safe? I know Activities are completely destroyed and recreated when the screen orientation changes. Couldn't those weakly referenced objects get GCed in the split second when the screen is rotated, since they wouldn't be referenced elsewhere at that point?
View 3 Replies
View Related
Apr 26, 2010
While researching how to create custom compound views in Android, I have come across this pattern a lot (example comes from the Jteam blog)I mostly understand how this is working, except for the part where inflate() is called. The documentation says that this method returns a View object, but in this example the author does not store the result anywhere. After inflation, how is the new View created fromt eh XML associated with this class? I thought about assigning it to "this", but that seems very wrong.
View 1 Replies
View Related
Sep 25, 2013
Is there anyway I can make my Right Thumbstick on my controller act like it's pressing letters, rather then a proper analog stick? (i.e. if I move the Right Thumbstick around in a circle, then I want to see letters come up, as if I were typing them.)
I've been trying to use USB/BT Joystick Center for this, but I'm having a little trouble.When I bring up the edit mode, while in the DS emulator the app still treats the right thumbstick as a proper analog stick, even though I re-mapped the right stick in the main app to letters (R stick UP-M, R stick RIGHT- N, R stick - DOWN O, R stick - LEFT P)
Are there any apps that will allow me to map keystrokes to a analog stick, and be able to emulate virtual on screen controls for games, and emulators?
View 1 Replies
View Related
Apr 17, 2010
I'm searching for some good material on android threads but I couldn't find references for a complete description about this subject. So if you know any valuable reference please point them to me.
View 1 Replies
View Related
Nov 2, 2010
Looking to see if there's a way to convert the video from the hdmi cable to analog so it can be played on non hdmi tv's? Would need to end up being composite cables for video and sound.
View 3 Replies
View Related
Sep 2, 2010
I've been trying to diagnose a memory leak in an Android application I'm writing. I got a heap dump loaded into Eclipse, but the results I'm seeing are very curious. There are some 20,000 instances of an exception (specifically, LDAPException from the UnboundID LDAP library) in the heap with no inbound references.
That is, they show up at the root of the dominator tree. The OQL SELECT objects e FROM com.unboundid.ldap.sdk.LDAPException e WHERE (inbounds(e).length = 0) returns over 20,000 results, totalling to nearly all of the heap. And yet, the GC runs before the heap dump and I can see that it's running in the console, repeatedly, during the execution of the leaky code. If these instances have no inbound refs, what could be keeping them alive?
I also tried doing a "shortest paths to GC" query. It shows one LDAPConnectionReader row retaining 2 instances, and ~20k LDAPException @ <addr> unknown rows with various hex addresses.
Update: I haven't had time to further diagnose this since posting it, and the bounty I posted is ending before I likely will. I'm awarding it as best I can now, lest the points go to waste. Thanks to everyone who looked into this! I will come back later and update again with the results of further diagnosis, when life is a little less hectic.
View 3 Replies
View Related
Feb 11, 2010
I've had this Motorola Droid for almost 3 weeks, and pretty good so far, with a few things I'd like to work around. First, when I put it into the dock/'multimedia' thing, I would like more options than where my weather comes from. It needs, nay, begs, for analog clock! If anyone knows a way or an app, please let me know.
View 1 Replies
View Related