Android File Picker [closed]

旧城冷巷雨未停 提交于 2019-12-18 06:43:29

问题


Is there a good solution for picking a file in an android application? I need the user to be able to browse their SD card for a file they would like to load. However, it cannot use an outside application (like andExplorer or OI File Manager). It must stay contained inside my application and not require users to install other applications.

Using Intent.GET_CONTENT will not work because the files are of a custom type.

Thanks!


回答1:


For anyone still searching for answers, here is a good example with code to create a file chooser/picker simple file chooser




回答2:


You can also use my library, which does exactly what you described: aFileChooser




回答3:


Ironically I ended up integrating the OI File Manager into my application myself, since the source had been released via svn.

If there's a better way for those looking for the answer to the same question feel free to speak up.



来源:https://stackoverflow.com/questions/2701857/android-file-picker

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!