I would expect more something like this:
startActivity(new Intent(Settings.ACTION_APPLICATION_DETAILS_SETTINGS,
Uri.parse("package:com.example.android.jetboy")));
After all, that's what the documentation for
ACTION_APPLICATION_DETAILS_SETTINGS states:
http://developer.android.com/reference/android/provider/Settings.html#ACTION_APPLICATION_DETAILS_SETTINGS
Also, bear in mind that this is only available on Android 2.3 and higher.
On Sat, Feb 12, 2011 at 12:14 PM, dipu <[email protected]> wrote:
> I am trying to invoke the InstalledAppDetails with following code. I
> get error message that says activity not found. How should I invoke
> InstalledAppDetails?
>
> 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);
>
> E/AndroidRuntime( 1007): FATAL EXCEPTION: main
> E/AndroidRuntime( 1007): 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 }
>
> --
> You received this message because you are subscribed to the Google
> Groups "Android Developers" group.
> To post to this group, send email to [email protected]
> To unsubscribe from this group, send email to
> [email protected]
> For more options, visit this group at
> http://groups.google.com/group/android-developers?hl=en
>
--
Mark Murphy (a Commons Guy)
http://commonsware.com | http://github.com/commonsguy
http://commonsware.com/blog | http://twitter.com/commonsguy
_The Busy Coder's Guide to Android Development_ Version 3.4 Available!
--
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en