我们知道华为和小米在设置选项中有“protected apps option”,这个选项会在屏幕关闭时杀死我们的应用程序,然后无法收到通知和其他...我想警告我的用户关于此选项并打开此设置部分,是否可以在此设置目录中打开一个 itent?实际上我打开设置的目的是:
startActivity(new Intent(Settings.ACTION_SETTINGS));
有什么想法吗?提前致谢!
最佳答案
Intent intent = new Intent();
intent.setComponent(new ComponentName("com.huawei.systemmanager", "com.huawei.systemmanager.optimize.process.ProtectActivity"));
startActivity(intent);
关于android - 华为 protected 应用程序的 Intent ,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/40970869/