Android File Picker [closed]
开发者_运维百科
Questions asking us to recommend or find a tool, library or favorite off-site resource are off-topic for Stack Overflow as they tend to attract opinionated answers and spam. Instead, describe the problem and what has been done so far to solve it.
Closed 9 years ago.
Improve this questionIs 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!
For anyone still searching for answers, here is a good example with code to create a file chooser/picker simple file chooser
You can also use my library, which does exactly what you described: aFileChooser
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.
精彩评论