Android的如何从SD卡中查看GALLARY文档? [英] Android How to view doc from sdcard in gallary?
本文介绍了Android的如何从SD卡中查看GALLARY文档?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我有哪些用户应用程序可以从SD卡中搜索图像,音频,视频,文档文件,并选择1文件上传它在服务器上。
使用下面code我可以打开画廊,选择图像,音频,视频,但我没有想法,如何从图库搜索文档。
I have app in which user can search image,audio,video,doc file from sdcard and choose 1 file for upload it on server. Using Below code I can open the gallery and select image,audio,video But I have not idea that how to search doc from gallery.
下面是我的code。
Intent intent = new Intent();
intent.setAction(Intent.ACTION_GET_CONTENT);
//intent.setType("video/*");
//intent.setType("audio/*");
//intent.setType("image/*");
//**What I have to do for view document[.pdf/text/doc] file**
startActivityForResult(Intent.createChooser(intent, "Complete action using"), REQUEST_CODE);
有没有人有任何想法如何可以做到这一点?任何帮助是极大的AP preciated。
Does anyone have any idea how this can be achieved? Any help is greatly appreciated.
推荐答案
试试这个库的 aFileChooser
其做工精细
try this library aFileChooser its working fine
请参阅此链接
这篇关于Android的如何从SD卡中查看GALLARY文档?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文