No offense - but how is that a solution and why bother having stuff in
the API that isnt implemented. Its things like this that make me ready
to jump the android ship to maemo 5

On Aug 14, 8:01 pm, Dianne Hackborn <hack...@android.com> wrote:
> 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 <ebom...@gmail.com> 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 <marc...@android.com> wrote:
> > > The package manager has APIs to do this.
>
> > > On Fri, Jul 31, 2009 at 8:52 AM, EboMike <ebom...@gmail.com> 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
> hack...@android.com
>
> 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 android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers-unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to