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…
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
Try this:
This will shut down GPS for this app, but it is still available for use by other apps.
Be sure to test your app on a real phone because the emulator does not show the same GPS behavior as a real phone.