RE: [android-developers] getInstalledPackages(PackageManager.GET_ACTIVITIES) -> PackageManager has died!?
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: android-developers@googlegroups.com [mailto:android-developers@googlegroups.com] On Behalf Of Dianne Hackborn
Sent: mercredi 25 avril 2012 23:24
To: android-developers@googlegroups.com
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.
0 Comments:
Post a Comment
Subscribe to Post Comments [Atom]
<< Home