文件资源管理器(文件选择)android

时间:2012-01-12 08:13:33

标签: android

我想让用户从他的Android设备中选择一些文件,将其上传到服务器上。 如何显示文件浏览器并让用户选择任何(图像/音频/视频)文件(单个或多个选择)来上传它。
我该如何实现呢。

请帮助。
谢谢..

2 个答案:

答案 0 :(得分:3)

参见本教程:

http://android-er.blogspot.com/2010/01/implement-simple-file-explorer-in.html

并根据您的需要进行扩展。

答案 1 :(得分:1)

Intent intent = new Intent(Intent.ACTION_GET_CONTENT);  
intent.setType("audio/*");  
startActivity(Intent.createChooser(intent, "Select music"));