gpt4 book ai didi

android - 如何以编程方式在 MI 4i 安全应用程序中为我的应用程序启用自动启动选项?

转载 作者:塔克拉玛干 更新时间:2023-11-02 20:02:08 26 4
gpt4 key购买 nike

For check screenshot and detail, click here

Please give related suggession or code for how to add automatic enable auto start for my app , please check here attached screen shot thanks in advance.

最佳答案

试试这个……它对我有用。它将打开屏幕以启用自动启动。

String manufacturer = "xiaomi";
if(manufacturer.equalsIgnoreCase(android.os.Build.MANUFACTURER)) {
//this will open auto start screen where user can enable permission for your app
Intent intent = new Intent();
intent.setComponent(new ComponentName("com.miui.securitycenter", "com.miui.permcenter.autostart.AutoStartManagementActivity"));
startActivity(intent);
}

关于android - 如何以编程方式在 MI 4i 安全应用程序中为我的应用程序启用自动启动选项?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/32312177/

26 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com