Android Question Settings intent

HotShoe

Well-Known Member
Licensed User
Longtime User
I'm trying to open the settings page to display info about a package. I don't understand why this does not work:

Code: Copy
Sub pkglst_ItemLongClick (Position As Int, Value As Object)
   Dim i As Intent
   
   i.Initialize("APPLICATION_DETAILS_SETTINGS",Value)

   StartActivity(i)
   
   
End Sub

I've tried variations on the action from the full name to constants with no luck. I've also tried without the package name uri. What I get is this exception:

android.content.ActivityNotFoundException: No Activity found to handle Intent { act=APPLICATION_DETAILS_SETTINGS flg=0x20000 }

--- Jem
 
Let's say you want to get the app details for an app named "my.cool.app"
Code: Copy
Dim i As Intent
i.Initialize("android.settings.APPLICATION_DETAILS_SETTINGS", "package:my.cool.app")
StartActivity(i)

In your code, "Value" must contain the package name.

Note: This works on SDK >= 9
 
Last edited:
Upvote 0
Thanks NJ, it was the package: that I was missing. It was driving me crazy, but at least it isn't a long drive...

--- Jem
 
Upvote 0
Back
Top