I want to make an android application which can automatically turn on GPS as it is launched. I am having Ice cream sandwhich.please help me
Asked
Active
Viewed 1,238 times
-1
-
1You can't and you shouldn't - it's ethically questionable to override something the user has set that has security/privacy considerations. – thegrinner Jul 18 '13 at 12:28
1 Answers
6
You can't on unrooted device.
Your best option is to show a dialog to user and ask him to turn on those settings (one button might start intent to forward user to location settings).

Arkadiusz 'flies' Rzadkowolski
- 5,676
- 2
- 29
- 31
-
Yep, the best proof of this is that Google's navigation app does the same thing. – Zoltán Jul 18 '13 at 12:28