Android文件选择器 [英] Android File Picker

查看:140
本文介绍了Android文件选择器的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

有没有在Android应用程序选择一个文件,一个好的解决办法?我需要用户能够浏览其SD卡要他们想加载文件。然而,它不能使用外部应用(像andExplorer或OI文件管理器)。它必须保持包含我的应用程序中,而不是要求用户安装其他应用程序。

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.

使用Intent.GET_CONTENT不会工作,因为该文件是一个自定义类型。

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

谢谢!

推荐答案

讽刺的是我最终整合OI文件管理器到我自己的应用程序,因为源已通过SVN被释放。

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.

这篇关于Android文件选择器的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆