Have you tried moving the lm.removeUpdates(locationListener); to Before the super.onPause ?
Sincerely, Brad Gies ----------------------------------------------------------------- Brad Gies 27415 Greenfield Rd, # 2, Southfield, MI, USA 48076 www.bgies.com www.truckerphone.com www.EDI-Easy.com www.EDI-Simple.com ----------------------------------------------------------------- Moderation in everything, including abstinence -----Original Message----- From: [email protected] [mailto:[email protected]] On Behalf Of chrispix Sent: Friday, June 12, 2009 11:39 AM To: Android Developers Subject: [android-developers] Bug? LocationMasfClient / GPS keeps sending updates even after locationmanager.removeupdates? Ok, I am using GPS on Google maps, and this is my onPause. Am I missing something? GPS keeps sending LocationMasfClient getNetworkLocation(): Returning cache location with accuracy 1319.0 Then eventually it does : GPSLocationProvider state: DISCONNECTED apnName: null reason: null. Am I missing something? @Override public void onPause(){ // Suspend UI updates, threads, or CPU intensive processes that don't // need to be updated when the Activity isn't the active foreground activity. super.onPause(); lm.removeUpdates(locationListener); } --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---

