开发者

file explorer in android [closed]

开发者 https://www.devze.com 2023-01-01 00:30 出处:网络
As it currently stands, this question is not a good fit for our Q&A format. We expect answers to be supported by facts, references,or expertise, but this question will likely solicit debate, a
As it currently stands, this question is not a good fit for our Q&A format. We expect answers to be supported by facts, references, or expertise, but this question will likely solicit debate, arguments, polling, or extended discussion. If you feel that this question can be improved and possibly reopened, visit the help center for guidance. 开发者_开发百科 Closed 10 years ago.

Hi I am new to android. I need to list available files in device or SDCard in the android emulator 1.5.Thanks in advance.


Use normal Java File IO operations(see class-documentation)

Here is the pseudo-code:

String pathToSdCard = Environment.getExternalStorageDirectory().getAbsolutePath();
new File(pathToSdCard ).list();


I had posted this on another page. Its a late answer but I worked on creating an android file explorer recently. https://github.com/mburman/Android-File-Explore

Its really straightforward. Essentially its just 1 file that you would need to integrate into your application.

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号