开发者

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 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().

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜