I'm attempting to write a BroadcastReceiver to be notified when the Android OS kills an app in order to reclaim resources. I've tried filtering on "android.intent.action.PACKAGE_RESTARTED" but I never seem to receive that broadcast, even when I force close an application.
So, am I using the correct intent action filter? If not, what i...
Hi,
My Android App has 2 activities. A login screen and a search screen. When i deploy the app on emulator or on my device, i see 2 icons for same app. When i click on icon 1 it opens screen 1 (login screen) and When i click on icon 2 it opens screen 2 (search screen). By logic when i login it should show the search screen. Not sure wh...
I want to enhance Android app and I've cloned its source from android.git.kernel.org. During compile I find dependencies on platform components external to the tree, for example
com.google.android.collect.*
It turns out that most of these are resolved in platform/frameworks/base.git.
Which raises several questions:
is grabbing a pi...
I know how to setup and display an oval shape. I know how to apply a gradient to this shape. What I cant figure out is how I can get an oval gradient to match the shape.
<?xml version="1.0" encoding="utf-8"?>
<shape xmlns:android="http://schemas.android.com/apk/res/android"
android:shape="oval" >
<gradient
android:st...
Hi,
Is there a way to replace the scrollbar drawable in an application (i.e. I have a customized scrollbar view that I would like to use instead of the default gray scrollbar that comes with the Android framework). I looked through I believe all of the android attributes and none seem to support it (at least the simplest way I know how...
I am still working on my location-based alarm android application. I have an AlarmService class that starts notifications and proximity alerts. I am starting this service with:
startService(intentAlarmService);
I try to stop the service using:
Intent intentAlarmService = new Intent(this, AlarmService.class);
stopService(intentAlarmSe...
I have a surfaceView setup and running, but when i resume it i get an error that the thread has already been started. Whats the proper way to handle when the app goes to the background and then back to the foreground? Ive tinkered around and managed to get the app to come back without crashing...but the surfaceView doesnt draw anthing an...
My Android app runs fine, but:
If I insert a call to WebView.setScrollbarFadingEnabled, it crashes saying:
Could not find method android.webkit.WebView.setScrollbarFadingEnabled, referenced from [my class]
VFY: unable to resolve virtual method 289: Landroid/webkit/WebView;.setScrollbarFadingEnabled (Z)V
I am using Android 1.5, not a c...
I understand that the system may kill the activity without calling onDestroy(). Say I have a MediaPlayer that runs even when it's not visible, I would be releasing the player in onDestroy() method.
Now, if the system decides to kill the activity after calling onPause() and never called onDestroy(), what does it mean for my MediaPlayer? ...
I have the android:cacheColorHint="#00000000" set on my ListView, which fixed this issue in one of my other lists in another activity, but it's not helping in this other list. I'm using the Light theme in my app, if that matters. I can't figure out what's going on. Long press brings up the context menu just fine, I just don't get the nic...
We have an existing website which currently uses v2 of the google maps api which displays cellphone signal strength as a ground overlay on top of the google maps tiles (similar to this http://www.vodafone.co.nz/coverage/)
What I would like to know is if it's possible to have ground/tile overlays in google maps android/iphone native api'...
Trying to find some information on the GC. In my log i see these entrie often:
08-19 22:35:27.513: DEBUG/dalvikvm(1981): GC_EXPLICIT freed 93 objects / 3160 bytes in 999ms
08-19 22:35:28.256: DEBUG/dalvikvm(2331): GC_FOR_MALLOC freed 15082 objects / 523496 bytes in 47ms
whats the difference between the 2?
...
When running LogCat in Eclipse, the output to Logcat stops after the following message
08-19 19:46:13.525: WARN/ActivityManager(58): Launch timeout has expired, giving up wake lock!
08-19 19:46:13.702: WARN/ActivityManager(58): Activity idle timeout for HistoryRecord{43fd5c90 com.android.homeopathy/.symptomActivity}
What does this m...
Hi all,
I have a question: How to create a drag and drop layout as layout "All Programs" in HTC screen home ?
Thanks for help.
...
I'm making an OpenGLES Android app using Android NDK, expanding from android's gljni example, which can be found here
It's using GLSurfaceView. Textures are initialized in a JNI function called from onSurfaceChanged() of GLSurfaceView.Renderer
When the user touches screen, the app needs more textures. In order to do so, glGenTextures(...
Hi,
I need to fool GMap application on android device by providing my own positioning data.
What is the possibility and how shall i go about achieving it?
Thanks,
Black
...
I wrote the same program two ways.
One using a Surfaceview, and the other using a custom view. According to the android SDK development guide, using a surface view is better because you can spawn a separate thread to handle graphics. Th SDK development guide claims that using a custom view with invalidate calls is only good for slower a...
Hi,
How to create listview like listview ( has animation for listview) in layout "All messages" in HTC Hero ?
...
Hi everyone,
I am trying to make a Android Softkeyboard. I want a pop-up of possible characters(completions) as keys to select as i click on a key.
Say i press the key number 1 . As soon as i do that .is it possible to get a pop up of strip of keys to select and keys would be 11 12 13 14 15 16 . Now i would choose...
I have been struggling with this one for a while now. My goal is to create a button that, when pushed generates the same result as when the down button on the DPAD is pressed. I created an onClick listener to accomplish this task.
downButton.setOnClickListener(new View.OnClickListener() {
public void onClick(View v) {
...