-1

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

Sangeeta Rawat
  • 199
  • 1
  • 1
  • 15
  • 1
    You 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 Answers1

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).