Android Question Open auto start page

alirezahassan

Active Member
Licensed User
Hi all,
I want to get auto start permission. What am I do to open this page?
IMG_20210329_164238_542.jpg
 

alirezahassan

Active Member
Licensed User
It doesn't look like a standard Android feature.

If you want your app to start at boot then set #StartAtBoot: true in one of the services (not Starter).
HI dear @Erel.
In new Android, it seems that it can not be used without auto start permission . I tested that I need this access to start
Is it possible to convert this from Java to B4X Language?
Java:
           Intent intent = new Intent();

            intent.setComponent(new ComponentName("com.miui.securitycenter",

              "com.miui.permcenter.autostart.AutoStartManagementActivity"));

            startActivity(intent);

Thank you so much
 
Upvote 0

dayvid

New Member
Hello everyone
I need to convert the following code to B4x to guide the user to the part attached to the photo.
please guide me.
Thanks

B4X:
Intent intent = new Intent("miui.intent.action.APP_PERM_EDITOR");
intent.setClassName("com.miui.securitycenter",
"com.miui.permcenter.permissions.PermissionsEditorActivity");
intent.putExtra("extra_pkgname", getPackageName());
startActivity(intent);
 

Attachments

  • photo_2021-03-31_13-40-18.jpg
    photo_2021-03-31_13-40-18.jpg
    32.2 KB · Views: 217
Upvote 0

alirezahassan

Active Member
Licensed User
Hello everyone
I need to convert the following code to B4x to guide the user to the part attached to the photo.
please guide me.
Thanks

B4X:
Intent intent = new Intent("miui.intent.action.APP_PERM_EDITOR");
intent.setClassName("com.miui.securitycenter",
"com.miui.permcenter.permissions.PermissionsEditorActivity");
intent.putExtra("extra_pkgname", getPackageName());
startActivity(intent);
Maybe it will help you.
B4X:
Dim Intent As Intent
Intent.Initialize("miui.intent.action.APP_PERM_EDITOR","")
Intent.SetComponent("com.miui.securitycenter/com.miui.permcenter.permissions.PermissionsEditorActivity")
Intent.PutExtra("extra_pkgname",Application.PackageName)
StartActivity(Intent)
 
Upvote 0
Top