Android File Picker [closed]

2020-02-12 08:49发布

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!

3条回答
男人必须洒脱
2楼-- · 2020-02-12 09:23

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

查看更多
【Aperson】
3楼-- · 2020-02-12 09:30

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.

查看更多
地球回转人心会变
4楼-- · 2020-02-12 09:38

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

查看更多
登录 后发表回答