Generally the correct way to do this is start a chooser activity for the
GET_INTENT action with the MIME type you want (or */* for all MIME types).
This will allow the user to pick from all of the apps that manage data, and
use their picker where appropriate.  For example, this allows them to browse
through their images as pictures to pick one of those, or even do ad-hoc
things like record a sound that will be returned.

You really shouldn't be using something like IO File Manager directly.
Instead, that thing should publish as handling GET_CONTENT of any MIME type,
so if the user has it installed they can use it to pick what they want, in
addition to the other types of content available.

http://developer.android.com/reference/android/content/Intent.html#ACTION_GET_CONTENT

On Sat, Feb 28, 2009 at 7:46 AM, ANDREA P <[email protected]> wrote:

>
> In my code I want to open a File Chooser from a button , because when
> I click the button in the program i can choose a file from Android
> file system...
>
> Thanks......
>
> On 28 Feb, 16:38, Mark Murphy <[email protected]> wrote:
> > ANDREA P wrote:
> > > Is there a FileChooser for Android ???
> >
> > As a widget, no.
> >
> > > Because I want to select a file from File System and after send it.
> >
> > Consider using OI File Manager from OpenIntents.org:
> >
> > http://www.openintents.org/en/node/159
> >
> > --
> > Mark Murphy (a Commons Guy)http://commonsware.com
> >
> > Android Training on the Ranch! -- Mar 16-20, 2009
> http://www.bignerdranch.com/schedule.shtml
> >
>


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