Reputation: 456
Can someone please point me in the right direction. I have been googling for ages and I'm not getting great results.
I want my app to allow the user to download a file from the USB/SDcard. Specifically an image, which then later gets used in my app.
I can't seem to find anything, been searching for open file dialogs and nothing..
So:
1) User inserts USB device/SDCard. 2) User gets file browser dialog. 3) User finds image from USB/SDCard 4) App grabs image and stores it for later use.
Thanks :)
Upvotes: 0
Views: 165
Reputation: 7773
I think what you are looking for is how to work with external storage in Android. there is a very good tutorial from android site: http://developer.android.com/guide/topics/data/data-storage.html#filesExternal. hope this helps.
Upvotes: 2
Reputation: 6575
To browse for images on the SDCard this thread is very helpful:
How to pick an image from gallery (SD Card) for my app?
I would suggest using the Android Gallery interface for images as it is much easier for the user than browsing files.
Upvotes: 2