Reputation: 371
In android Settings-> App Management -> App(Selected) -> Battery usage.
How we can programmatically enable option 1 ( run in background), if we can't, how to redirect user to this page.
Thank you
Upvotes: 0
Views: 1501
Reputation: 714
There is actually a mega thread on this at google's issue tracker. There is no simple way to change this, every OEM that has these types of fine control has it's own activity you need to point.
This site has a list of OEM's that does this. This old question has a lot of OEM's and intents you may use. And this library is a collection of these auto starters, so you may redirect the user to this screen.
Upvotes: 2