Android Mock Location locks GPS on status bar

Posted by Mark Manickaraj on Stack Overflow See other posts from Stack Overflow or by Mark Manickaraj
Published on 2012-12-17T03:30:58Z Indexed on 2012/12/17 5:03 UTC
Read the original article Hit count: 162

Filed under:
|
|

I created an app that uses mock locations to insert GPS coordinates. After removing the test provider via:

mLocationManager.clearTestProviderLocation(mocLocationProvider);
mLocationManager.removeTestProvider(mocLocationProvider); 
mLocationManager.removeUpdates(mLocationListener);

When I launch google maps for example after exiting the app the GPS location is found and then never goes away. "Location Set By GPS" always remains on the notification bar even though my app is ended.

Any ideas?

© Stack Overflow or respective owner

Related posts about android

Related posts about gps