I have started my GPS programmatically by Intent myIntent = new intent(Settings.ACTION_SECURITY_SETTINGS); mContext.startActivity(myIntent);
How i will turn Off GPS when i exit from my program...
I have started my GPS programmatically by Intent myIntent = new intent(Settings.ACTION_SECURITY_SETTINGS); mContext.startActivity(myIntent);
How i will turn Off GPS when i exit from my program...
try this:
locationManager.removeUpdates(myLocationListener); locationManager = null;
this shutdown gps for this app, but ist still available for use by other apps.
ps.: test your app on a real phone because the emulator does not show the same gps-behavior like a real phone
regards
Hello! I wonder how you started GPS programmatically , what you presented just pops out the settings to the user, I am lloking of a silent way to enable GPS on android 2.1 update1. Any idea? Thanks and all the best!
hello! What version are you using as > 1.5 Android does not let you turn on/off GPS programmatically ? If you done it please share exactly how. Thanks and cheers!