I for one need it. i am trying to get a list of all applications and
derivations (such as camcorder) While I can use

                         Intent mainIntent = new Intent(Intent.ACTION_MAIN, 
null);
                         mainIntent.addCategory(Intent.CATEGORY_LAUNCHER);

                         Intent pickIntent = new 
Intent(Intent.ACTION_PICK_ACTIVITY);
                         pickIntent.putExtra(Intent.EXTRA_INTENT, mainIntent);
                         startActivityForResult(pickIntent, RESULT_APP);

That doesnt allow me to manipulate the way people can select the app,
such as multiple selection etc. It would be great if you could point
me at another way to accomplish that in code.

On Sep 2, 5:11 pm, Dianne Hackborn <hack...@android.com> wrote:
> It was something we wanted to do before 1.0, but didn't have time and
> nothing needed it so it got bumped.  I can't @hide it from the next SDK if
> that makes you feel better.
>
> On Wed, Sep 2, 2009 at 2:02 PM, bra...@gmail.com <peacoc...@gmail.com>wrote:
>
>
>
>
>
> > 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.
>
> --
> 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