Android Question Open auto start page

alirezahassan

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
 

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

alirezahassan

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)
 
Top