Why am I doing what ? getInstalledPackages(0), because I'm interested in
specific package names with a predefined prefix, those may include a
specific activity to configure the package.

 

All the packages I'm looking for are app extension that I develop myself. So
using getIntentActivities() is of no interest in this situation.

 

In other words I'm searching for packages with predefined named (eg
<prefix>.name) and then out of those I need to know which one have an
activity named "settings".

 

Now the getInstalledPackages(PackageManager.GET_ACTIVITIES) is a valid API
call, and nothing in the documentation says not to use it, but nevertheless
it doesn't seem to be a good idea.

 

Some users got FCs while others didn't get any results out of it.

 

From: [email protected]
[mailto:[email protected]] On Behalf Of Dianne Hackborn
Sent: mercredi 25 avril 2012 23:24
To: [email protected]
Subject: Re: [android-developers]
getInstalledPackages(PackageManager.GET_ACTIVITIES) -> PackageManager has
died!?

 

Why are you doing this?  This is a terrible way to find out about an
activity.

 

What are you actually trying to do?  Usually people use
PackageManager.getIntentActivities() to get the set of activities they are
interested in.

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

Reply via email to