Android Question Open auto start page

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
    32.2 KB · Views: 217
Upvote 0

alirezahassan

Active Member
Licensed User
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
Cookies are required to use this site. You must accept them to continue using the site. Learn more…