vidit
vidit

Reputation: 171

Display SD Card Data in ListView android

Can anybody suggest me how to show all public Data in ListView format stored in my Device's SD Card

Upvotes: 0

Views: 1294

Answers (1)

Emyr
Emyr

Reputation: 2371

How about reusing someone else's class so you write less code?

http://openintents.org/en/filemanager

Third party developers can use OI File Manager through simple intents to present an "Open file", "Save file", or "Select folder" activity.

The file manager features PICK_FILE and PICK_DIRECTORY intents:

Intent intent = new Intent("org.openintents.action.PICK_FILE"); startActivityForResult(intent, 1);

You can provide a pre-selected file or folder by setting data through setData() to a file URI, like "file:///sdcard/notepad.csv". The picked file URI can be obtained in onActivityResult() through getData().

Upvotes: 1

Related Questions