-4

I want to enable location without having a dialogue box popping up when I open my App. and i want it to enable until i turned it off manually.is this possible?

arun
  • 13
  • 1
  • 5

2 Answers2

6

No, for obvious privacy reasons.

CommonsWare
  • 986,068
  • 189
  • 2,389
  • 2,491
  • I agree with @CommonsWare. miningian Do you like if any mobile app enables any feature without your concern? – Nikhil Apr 05 '18 at 14:50
  • Well, do they really need your approval, or even you knowing that they inabled it anyways.... #Facebook. – N.K Apr 05 '18 at 14:52
  • Nikhil , yes I agree with you, is there any way to turn location? Instead dialouge pop up. – arun Apr 06 '18 at 04:57
1

An app cannot grant itself this permission itsself, it can detect if the service is off, and prompt the user to enable it, however for security reasons, this cannot, and should not be done without input from the user.

See here for how to prompt the user to turn on

James Lingham
  • 419
  • 1
  • 3
  • 17