Yeah GET_INTENT_FILTERS hasn't been implemented.  The only way to do this is
to parse the manifest yourself.  On a computer, you can use "aapt dump
xmltree <path-to-apk> AndroidManifest.xml" to look at the manifest of an
existing .apk.

On Fri, Aug 14, 2009 at 4:51 PM, EboMike <[email protected]> wrote:

>
> Could you elaborate on how exactly to do this? GET_INTENT_FILTERS
> doesn't really seem to do anything.
>
> The closest thing I got was to get the PackageInfo, query through its
> ActivityInfo objects, and then create an Intent out of each one
> (Intent intent = new Intent(); intent.setClassName(pi.packageName,
> activityInfo.name); ) and then call queryIntentActivities() on that,
> but none of that gives me the actual intent filter information.
>
> -Mike
>
>
> On Jul 31, 9:31 am, Marco Nelissen <[email protected]> wrote:
> > The package manager has APIs to do this.
> >
> > On Fri, Jul 31, 2009 at 8:52 AM, EboMike <[email protected]> wrote:
> >
> > > Is there a way to get a list of all apps and their activities and
> > > intent filters? Basically, I'd like to know what another app is
> > > "listening to" so I can provide an Intent that matches. (I suppose
> > > that this will require an ADP, which is fine).
> >
> > > I tried grabbing the AndroidManifest.xml from an .apk file in /data/
> > > app, but that didn't seem to work - I ran jar -xf on the apk, but the
> > > xml wasn't plain ASCII.
> >
> > > -Mike
> >
>


-- 
Dianne Hackborn
Android framework engineer
[email protected]

Note: please don't send private questions to me, as I don't have time to
provide private support, and so won't reply to such e-mails.  All such
questions should be posted on public forums, where I and others can see and
answer them.

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