There is no Android default intent for picking an file from the SD
card.
You can use OI File Manager's intent PICK_FILE to pick a file:
http://www.openintents.org/en/node/159
Intent intent = new Intent("org.openintents.action.PICK_FILE");
startActivityForResult(intent, 1);
The VIEW action should work with mime type text/plan. What exactly did
you try here, and what is the logcat output?
Peli
www.openintents.org
On Jan 20, 1:21 pm, jalandar <[email protected]> wrote:
> IF Android does not provide a default way to find a
> MIME type for files stored on the SD card, how to open (View)file on
> sdcard from our application.
> for VIEW action mime type requires. I tried "text/plain" for text file
> it is giving error.
>
> In general how to pick or view any file from sdcard?
>
> Thank you.
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---