How to create file chooser in Android?

こ雲淡風輕ζ 提交于 2019-12-11 11:24:56

问题


I need to create a app in which I have to show list of word files(.doc,.docx). Clicking on that file it should open up.

can anyone help ?

Like Dropbox in android.

I m new to android.


回答1:


You should create ListView Activity with custom ArrayAdapter when you will get files by need extention. Something like this http://code.google.com/p/open-data-kit/source/browse/trunk/odk-collect/src/org/google/android/odk/FileChooser.java?spec=svn63&r=63



来源:https://stackoverflow.com/questions/4066925/how-to-create-file-chooser-in-android

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!