I have been seeing different posts that GPS cannot be enabled programmatically How do I find out if the GPS of an Android device is enabled
But this app enables the GPS when it is disabled. Can anyone please help me out.
Thanks,
Prateek
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.
If the documentation said that it can’t be set programmatically, I suggest you not to do so. There are many impacts why the documentation said that. And if someone was able to do that (enabling the GPS programmatically), it means he/she doing something that was undocumented.
Activating GPS requires user’s permission. If your application was able to activate the GPS without notifying the users (furthermore, asking for the user’s permission), you might violate the privacy policy.