I want enable and disable GPS. I want like Google map app, when run app, the app ask from me enable my location and when my app goes to background(pause state) gps disable, I mean i don't see gps icon in top of screen, and when again app goes to foreground, again my location enable . I did not use LocationOverlay
. I write locationManager.removeUpdates(locationListener);
in onPause()
method, but when my app goes to background, i see gps on and enable and try detect my location!
I write enable location but i don't know how can disable gps and then hide gps icon!
Please help me
Thanks for advises.