To get a list of activities which can handle a data type:
Intent.queryIntentActivities() or Intent.queryIntentActivityOptions()
appear to be the ticket.

or, just use:

Intent.createChooser()

On Apr 8, 7:56 am, "nEx.Software" <[email protected]> wrote:
> This is how I get the filename:
>
> File f1 = new File(getIntent().getData().getPath());
>
> I don't know how to enumerate applications which can handle a certain
> type of file though.
>
> On Apr 7, 10:49 pm, Derek <[email protected]> wrote:
>
> > the other question is that if I'm develop an file explorer, how can I
> > know all the existing associations between file type (extensions) and
> > intents.
>
>
--~--~---------~--~----~------------~-------~--~----~
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