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. Where are the Germans? :-)

Hello everyone,

I localized my app for Germany, but I'm wondering: Where are they?
When the UK got access to paid apps on Android Market, immediately i
got a number of sales from the UK.
I have not had one sale yet from Germany.

What are your experiences?

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

2. how to change the font size for all buttons via XML (themes for certain widgets)

Hi,

I'm new to Android (and new to GUI design).

I guess this is possible, but my Google searches did not turn out
something useful.

I wanted to create a theme, thet changes certain attributes only a
certain kind of widgets.

The first thme, that I tested and applied was:
<?xml version="1.0" encoding="utf-8"?>
<resources>
  <style name="KF_Theme" parent="android:Theme">
    <item name="android:textColor">#FFFF0000</item>
    <item name="android:textSize">24sp</item>
  </style>
</resources>


which nicely changes the color / fontsize for all items.

What would I have to do if I wanted to change the Font size for
example only for all
Button Widgets ?

What would be the best document explaining / listing the existing
the attributes hierarchies  with possible values / scopes?


thanks in advance


and bye

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

3. How to get source code of Messaging application in Android?

4. Install Debian on Android

5. How can I make an Activity transparent/invisible

6. How compile the apk file?

7. Black Screen problem with graphics update using unlockCanvasAndPost()