Display SD Card Data in ListView android
Can anybody suggest me how to show all 开发者_JAVA百科public Data in ListView
format stored in my Device's SD Card
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
andPICK_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 inonActivityResult()
throughgetData()
.
精彩评论