FileChooser on Android

by ANDREA P » Sat, 28 Feb 2009 19:26:34 GMT


Sponsored Links
 Hi,

Is there a FileChooser for Android ???

Because I want to select a file from File System and after send it.


Thanks !!!!!!!!!!
--~--~---------~--~----~------------~-------~--~----~



FileChooser on Android

by Mark Murphy » Sat, 28 Feb 2009 23:38:56 GMT


 


As a widget, no.


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 

--~--~---------~--~----~------------~-------~--~----~


Sponsored Links


FileChooser on Android

by ANDREA P » Sat, 28 Feb 2009 23:46:35 GMT


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





--~--~---------~--~----~------------~-------~--~----~



FileChooser on Android

by Mark Murphy » Sat, 28 Feb 2009 23:51:00 GMT


 


That's fine. Consider using OI File Manager from OpenIntents.org, as it
"also acts as an extension to other applications to display "Open" and
"Save" dialogs."

 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 

--~--~---------~--~----~------------~-------~--~----~



FileChooser on Android

by ANDREA P » Sun, 01 Mar 2009 00:08:47 GMT


 Thanks !!!!!!!!!!!!!!!





--~--~---------~--~----~------------~-------~--~----~



FileChooser on Android

by Dianne Hackborn » Sun, 01 Mar 2009 04:40:58 GMT


 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









-- 
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.  All such questions should be posted on public
forums, where I and others can see and answer them.

--~--~---------~--~----~------------~-------~--~----~



FileChooser on Android

by AKD » Sat, 07 Mar 2009 10:53:31 GMT


 hi,
          i am very new to android, and want to do the same task i
followed the link posted by Dianne Hackborn but not get much success
yet. can anybody help me, it will be great help if someone can expain
by using an example code.
Thanks....








--~--~---------~--~----~------------~-------~--~----~



FileChooser on Android

by Peli » Sun, 08 Mar 2009 21:43:51 GMT


 Hi Dianne,

Currently, OI File Manager supports the newly introduced intents
PICK_FILE  http://www.openintents.org/en/node/164 
and
PICK_DIRECTORY  http://www.openintents.org/en/node/165 

Both return a "file://" URI instead of a "content://" URI. This is
useful in cases where the user wants to choose a directory on the SD
card (to put several files into), or a file name on the SD card (like
in a "Save As..." dialog).

But it is a good suggestion that we should additionally support
GET_CONTENT + "*/*" for existing files.

Peli
www.openintents.org







--~--~---------~--~----~------------~-------~--~----~



FileChooser on Android

by Peli » Sun, 08 Mar 2009 21:45:21 GMT


 Here is a test application for OI File Manager:
 http://code.google.com/p/openintents/downloads/list?q=testfilemanager 

The description is given at the bottom of this page:
 http://www.openintents.org/en/node/159 

Peli
www.openintents.org








--~--~---------~--~----~------------~-------~--~----~



Other Threads

1. Touch or Click event...with a listView containing a gridView

Hi,

Here is my problem : I have a view containing a listView. And each row
of this listview is composed of a linearLayout, itself composed of
three textview and a gridView. Here is a summary of my layout for one
row :

<LinearLayout
        <TableLayout >
                <TableRow>
                        <TextView > one textview        </TextView>
                        <TextView > two textview        </TextView>
                        <TextView > three textview      </TextView>
                </TableRow>
        </TableLayout>

        <GridView > one gridView </GridView>
</LinearLayout>

I want to perform an action when the user click anywere on an item of
the listview. So I try these two approaches on the listview :
 - myActivity.getListView().setOnTouchListener(new View.OnTouchListener
() {...})
 - myActivity.getListView().setOnItemClickListener(new
AdapterView.OnItemClickListener() { ...})

And here is the trouble :
- when I click on the textview, it nearly works : the touch listener
is called, but not the clicklistener
- when I click on the gridView it doesn't work....the event is just
dispatched to the element of the gridView...

I try :
 myActivity.getListView().setClickable(true);
 myActivity.getListView().setFocusable(true);
 myActivity.getListView().setFocusableInTouchMode(true);
The result is strange...It was not possible anymore to select the
element of my gridView....and it is perfect for my application...but
the listview's listeners are not called when I click on a row...

I try "setEnabled(false)" on the element of the gridView. I try
"setFocusable(false)", etc...and no result...

I try to define a listener for the gridview's item, to check that the
event exists...and there is an event...the listener of the gridview is
called...but is there any way that the parents receive the event to ?

For the touch listener, it seems that there is a problem with the
gridview...any solution ?

Thanks,
I hope it was clear...

-- 

2. API expansion

Hi,

can any one tell the expansion of API?...

-- 
Thanks & Regards
Sasikumar.S

-- 

3. How to open multiple windows?

4. GraphicsActivity Problem

5. how to do call interception

6. Bagi2 invitation google wave

7. Best practice for supporting all devices (varying sdks...)