Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How can I invoke InstalledAppDetails that is under com.android.settings?

Tags:

android

I am trying to invoke InstalledAppDetails using the following code. I get the error message saying there is no such activity.

Intent intent = Intent.parseUri("dat=package:com.example.android.jetboy cmp=com.android.settings/.applications.InstalledAppDetails", 0);
intent.setAction("android.settings.APPLICATION_DETAILS_SETTINGS");
startActivity(intent);

java.lang.RuntimeException: Unable to start activity ComponentInfo{com.dds.test/com.dds.test.TestLayout}: android.content.ActivityNotFoundException: No Activity found to handle Intent { act=android.settings.APPLICATION_DETAILS_SETTINGS dat=dat=package:com.example.android.jetboy cmp=com.android.settings/.applications.InstalledAppDetails }

like image 966
dipu Avatar asked Sep 06 '25 13:09

dipu


1 Answers

startActivity(new Intent(android.provider.Settings.ACTION_APPLICATION_DETAILS_SETTINGS, Uri.parse("package:com.example.android.jetboy")));
like image 180
mmathieum Avatar answered Sep 10 '25 11:09

mmathieum