Hi,

Currently working on a simple app to allow users to find various
things around them. When the activity that shows the Google map is
active I can see the GPS icon on the status bar, which is normal. But
I need to be able to stop the GPS hardware when my user navigates away
from the activity, and switch the GPS back on when the activity is
shown.

Is there a simple way to stop GPS when a user navigate away from an
activity? I have tried the LocationManager's removeUpdates() but this
doesn't actually stop the GPS (the icon is still flashing on the
status bar and draining the battery).

What I'm looking for is a simple way to programatically stop the GPS
hardware.

Many thanks

Llies


-- 
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