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. app2sd backward compatibility

Hello guys,

I recently enabled the app2sd functionality in my app.
To remain compatible with Android 1.5 i left intentionally the minSdkVersion
at 3 and added android:installLocation="preferExternal" attribute to my
manifest. Basically I followed what is listed in the following article:
http://developer.android.com/guide/appendix/install-location.html

When i test the apk on my NexusOne (2.2) the app goes to the SD card,
perfect! But when i publish the app on the market and install the same apk
from the market on the same Nexus, the app2sd function is missing, I can't
install it to my SD card.

Has anybody had the same problem before?

Thanks in advance!

Laszlo

--

2. bug in <bitmap tileMode="repeat" /> within <layer-list> ?

hello :)

I've got a ListView and items with their own xml.

these items do have a xml background.

this xml background is a layer-list with 4 items, one of them is a
<bitmap tileMode="repeat" />. the others are just an alpha-gradient
and a blue rectangle painted on top.

sometimes my tile-bitmap (just a small cirlcle.png) is painted
correctly (lots of small small circles everywhere), sometimes there is
only one circle which is zoomed to fill_parent.

are there any workarounds for this bug ?

btw: tested on 1.5 1.6 2.1 2.2 emulators and lots of different devices
(desire, nexus one, galaxy, galaxy tab, x10mini, wildfire, ...)

here comes my xml:
<?xml version="1.0" encoding="utf-8"?>
<layer-list xmlns:android="http://schemas.android.com/apk/res/
android">

    <item>
        <shape android:shape="rectangle">
            <solid android:color="@color/white" />
        </shape>
    </item>

    <item android:top="5dip" android:right="5dip"
android:bottom="5dip" android:left="5dip">
        <bitmap android:src="@drawable/background_tile_blue"
android:tileMode="repeat" />
    </item>

    <item android:top="5dip" android:right="5dip"
android:bottom="5dip" android:left="5dip">
        <shape android:shape="rectangle">
            <gradient android:startColor="#ddffffff"
android:endColor="#00ffffff" android:angle="0" android:type="linear" /
        </shape>
    </item>

    <item android:top="5dip" android:right="5dip"
android:bottom="5dip" android:left="5dip">
        <nine-patch android:src="@drawable/background_border_blue"
android:dither="true" />
    </item>

</layer-list>

greetings,
marco schmitz

-- 

3. AccountManager - how to get the nick name of the user instead of the email address

4. [Wts] desire HD bnib,xt720,defy, archos 7o

5. Changing the virtual memory map of Android

6. Compiling Android Froyo with no thumb support

7. Android and Web-services