Hi,

I'm creating a location listener in the onCreate method of my main
activity.
If I flip out the keyboard of the G1, onCreate is called again since
the activity
gets recreated. Each time my location listener is started up again.
Same deal if
I go to the system app to change location listeners. I'm trying to
listen to all
location changes so when a user presses the "current location" button
I'm ready
to go.

The location api's seem flaky - at least the way I'm (mis)using them.
"maps" seems
able to deal with location provider changes better than my app. How
can my app continue
to repond to location changes, for example, when the user switches
over to turn the
GPS on. My oncreate gets called again and the location listener is
recreated.

the getLastKnownLocation never works the first time, I have to switch
over to maps
to trigger a location update. Thus I'm using the location listener
strategy to monitor
all location providers.

Any deep thoughts or examples I can look at to fine tune?

Thanks!

Best,

pawpaw17
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to