alertdialog and flashing status bar
We have an application that uses full-screen...the status bar is hidden. However, when we put up an alert dialog, the status bar flashes for a moment, but then is gone. Looks a little strange. If I make custom layouts/dialogs the flashing goes away...is that the only way to clear the flash or does somebody have another idea?
Informacja: 2010-03-12
Czytaj: alertdialog and flashing status bar
Re: Using GPS in a widget hangs on lm.requestLocationUpdates(LocationManager.GPS_PROVIDER, 0, (float) 0.001, locationListener);
I'm bummed. So it seems widgets are only useful for once-a-day type info, no exceptions?
Informacja: 2010-03-12
Czytaj: Re: Using GPS in a widget hangs on lm.requestLocationUpdates(LocationManager.GPS_PROVIDER, 0, (float) 0.001, locationListener);
Re: [android-beginners] Re: Using GPS in a widget hangs on lm.requestLocationUpdates(LocationManager.GPS_PROVIDER, 0, (float) 0.001, locationListener);
I didn't say that. I said you can't fork threads from a BroadcastReceiver. App widgets are designed to change either on user input or after a period of time (preferably something nice and long, like 30 minutes, to save battery life). Based on your (non-working) code, you want to have an *app widget* be
Informacja: 2010-03-12
Czytaj: Re: [android-beginners] Re: Using GPS in a widget hangs on lm.requestLocationUpdates(LocationManager.GPS_PROVIDER, 0, (float) 0.001, locationListener);
Using GPS in a widget hangs on lm.requestLocationUpdates(LocationManager.GPS_PROVIDER, 0, (float) 0.001, locationListener);
I need location updates in a widget. The code below hangs in the emulator. Even if I change lat in emulator- control, it stays hung. Aside: The code works in a normal app. Any help appreciated! jim @Override public void onUpdate(Context context, AppWidgetManager appWidgetManager, int[] appWidgetIds) {
Informacja: 2010-03-12
Czytaj: Using GPS in a widget hangs on lm.requestLocationUpdates(LocationManager.GPS_PROVIDER, 0, (float) 0.001, locationListener);
Re: [android-beginners] Using GPS in a widget hangs on lm.requestLocationUpdates(LocationManager.GPS_PROVIDER, 0, (float) 0.001, locationListener);
That will be difficult. You cannot fork threads from an AppWidgetProvider, since it is a manifest-registered BroadcastReceiver, and your AppWidgetProvider will be alive for milliseconds (I hope). There is no clean way to have an AppWidgetProvider be around for the tens of seconds necessary to get a GPS fix. Not to mention the fact that
Informacja: 2010-03-12
Czytaj: Re: [android-beginners] Using GPS in a widget hangs on lm.requestLocationUpdates(LocationManager.GPS_PROVIDER, 0, (float) 0.001, locationListener);
Re: Default system font height
Hi, did you managed to find out how to get the height of a text in a paint object?
Informacja: 2010-03-12
Czytaj: Re: Default system font height
Re: [android-beginners] Re: Default system font height
Hi Jono, paint.getTextSize() gives the height of the current font. -chinna
Informacja: 2010-03-12
Czytaj: Re: [android-beginners] Re: Default system font height
cliprect
Hi, When we set canvas.clipRect(Rect) , is it must to call canvas.restore() and canvas.save() method inorder to see the effect of clipRect()? I am developing a game where i clip the portion of image from a big image file. When i use canvas.clipRect(Rect) and draw the bitMap, it doesnt display on the emulator screen. whereas if i call canvas.save() and
Informacja: 2010-03-12
Czytaj: cliprect
Re: [android-beginners] Google map API
Are you using the SDK with the Google Maps add-on? ------------------------------ ------------------------------ ------------------------------ ------- TreKing - Chicago transit tracking app for Android-powered devices [link]
Informacja: 2010-03-12
Czytaj: Re: [android-beginners] Google map API
Google map API
I tried to use Google map API. But its giving error on following lines. 1) when i import this package -- (import com.google.android.maps.MapVie w) it give error and ask to make a class MapView in com.google. android.maps 2) When i extend MapActivity in class it gives error In androidmaifest.xml that (com.gmap.GoogleMap does not extend
Informacja: 2010-03-12
Czytaj: Google map API
Re: [android-beginners] Disable keyboard in DatePicker ?
If you subclass it you could see if you have access to DatePicker's EditText member... I'm not sure you will, but if you do, you would then be able to set whether or not it is enabled. The buttons should still be able to set the value of the EditText, but then the user wouldn't be able to directly edit that field.
Informacja: 2010-03-12
Czytaj: Re: [android-beginners] Disable keyboard in DatePicker ?
Re: [android-beginners] Cannot get versionName when it set with string reference
I get the same results... Anyone know of any workaround for this? ------------------------------ ------------------------------ ---------- There are only 10 types of people in the world... Those who know binary and those who don't. ------------------------------ ------------------------------ ----------
Informacja: 2010-03-12
Czytaj: Re: [android-beginners] Cannot get versionName when it set with string reference