Android Question StartActiviti Intent

FabioG

Active Member
Licensed User
Longtime User
Hello,

I do not find the way to run this java code in B4A

B4X:
startActivity(newIntent(android.provider.Settings.ACTION_APPLICATION_DETAILS_SETTINGS,Uri.parse("package:my.package.app")));

can someone help me ?

Thanks!
 

FabioG

Active Member
Licensed User
Longtime User
B4X:
Dim in As Intent
in.Initialize("android.settings.APPLICATION_DEVELOPMENT_SETTINGS", "package:my.package.app")
StartActivity(in)

Thanks but not work

B4X:
(ActivityNotFoundException) android.content.ActivityNotFoundException: No Activity found to handle Intent { act=android.settings.APPLICATION_DEVELOPMENT_SETTINGS dat=package:com.android.camera2 flg=0x20000 }

other suggestions?
 
Upvote 0
Top