开发者

Allow a user to select a folder on an SD card

I'm looking for a way to allow a user to press a button to browse the contents of the SD card, and then select a folder, whose path will be r开发者_StackOverfloweturned to the application. Similar to how you pull up the "Browse..." dialog on Windows for installations.


Okay, so what I ended up doing was just using a ListActivity with a ListView (choiceMode:simple_list_item_multiple_choice) where the user can check the folders they wish to use. Then I used a custom layout that placed a Submit button below the ListView, which the user can press to confirm the selection.


There is nothing built into Android for it AFAIK. You can integrate something like OpenIntents File Manager, but that is a separate APK that users would need to install.


You can use AndroXplorer, the hook is quite simple, but then again, yes, it is another APK to install

0

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜