Re: [android-beginners] Google map API

2010-03-12 Thread TreKing
On Fri, Mar 12, 2010 at 12:46 AM, Harminder Singh jimmysing...@gmail.comwrote: I tried to use Google map API. But its giving error on following lines. Are you using the SDK with the Google Maps add-on?

[android-beginners] Using GPS in a widget hangs on lm.requestLocationUpdates(LocationManager.GPS_PROVIDER, 0, (float) 0.001, locationListener);

2010-03-12 Thread cellurl
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,

Re: [android-beginners] Using GPS in a widget hangs on lm.requestLocationUpdates(LocationManager.GPS_PROVIDER, 0, (float) 0.001, locationListener);

2010-03-12 Thread Mark Murphy
cellurl wrote: I need location updates in a widget. 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

[android-beginners] Re: Default system font height

2010-03-12 Thread jono
Hi, did you managed to find out how to get the height of a text in a paint object? On Feb 25, 7:48 pm, chinna Durai chinnadur...@gmail.com wrote: Hi, How to get height of a font which is currently set to the paint object? I have set default system fault by as below *DEFAULT_FONTS =

Re: [android-beginners] Re: Default system font height

2010-03-12 Thread chinna Durai
Hi Jono, paint.getTextSize() gives the height of the current font. -chinna On Fri, Mar 12, 2010 at 4:43 PM, jono jonney...@googlemail.com wrote: Hi, did you managed to find out how to get the height of a text in a paint object? On Feb 25, 7:48 pm, chinna Durai chinnadur...@gmail.com wrote:

[android-beginners] cliprect

2010-03-12 Thread chinna Durai
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

[android-beginners] alertdialog and flashing status bar

2010-03-12 Thread Michael Dorin
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

[android-beginners] Re: Using GPS in a widget hangs on lm.requestLocationUpdates(LocationManager.GPS_PROVIDER, 0, (float) 0.001, locationListener);

2010-03-12 Thread cellurl
I'm bummed. So it seems widgets are only useful for once-a-day type info, no exceptions? On Mar 12, 9:05 am, Mark Murphy mmur...@commonsware.com wrote: cellurl wrote: I need location updates in awidget. That will be difficult. You cannot fork threads from an AppWidgetProvider, since it is

Re: [android-beginners] Re: Using GPS in a widget hangs on lm.requestLocationUpdates(LocationManager.GPS_PROVIDER, 0, (float) 0.001, locationListener);

2010-03-12 Thread Mark Murphy
cellurl wrote: I'm bummed. So it seems widgets are only useful for once-a-day type info, no exceptions? 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

[android-beginners] MediaPlayer and HTTP authentication?

2010-03-12 Thread -DC-
Does anyone know if there's a way to tell MediaPlayer to authenticate with an HTTP source (login/pass)? Setting an Authenticator in the code doesn't seem to do it. -- You received this message because you are subscribed to the Google Groups Android Beginners group. NEW! Try asking and tagging

[android-beginners] Re: easy way to embed a button in a mapview?

2010-03-12 Thread brucko
Just an outside chance, if you have any trouble... I have no experience with MapView. This may be really dumb, but.. You may be able to put the MapView in a RelativeLayout , layout the MapView first in the Relative Layout and have it FillParent for height and width. Then put the Button next in