首页 > 解决方案 > Battery usage settings, allow app running in background programmatically

问题描述

In android Settings-> App Management -> App(Selected) -> Battery usage.

We find 3 options : enter image description here

How we can programmatically enable option 1 ( run in background), if we can't, how to redirect user to this page.

Thank you

标签: android

解决方案


在谷歌的问题跟踪器上实际上有一个大型线程。没有简单的方法可以改变这一点,每个拥有这些类型精细控制的 OEM 都有自己需要指出的活动。

该站点有一个执行此操作的 OEM 列表。这个老问题有很多你可以使用的 OEM 和意图。这个库是这些自动启动器的集合,所以你可以将用户重定向到这个屏幕。


推荐阅读