My application needs the GPS to be on, is there any way to check whether GPS is currently enabled or not and if not , then how to enable.
I am using android 2.3
My application needs the GPS to be on, is there any way to check
Share
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.
Android does not allow you to do that. The best thing you can do is checking if the GPS is enabled and if it’s not, ask the user to activate it.
Here you can see how to know if the GPS is enabled: How do I find out if the GPS of an Android device is enabled