在android系统文件浏览器 [英] file explorer in android
本文介绍了在android系统文件浏览器的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
您好我是新来的Android系统。我需要提前列出在Android模拟器1.5.Thanks设备或SD卡的可用文件。
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.
推荐答案
使用普通的Java文件IO操作(请参阅类文档)
Use normal Java File IO operations(see class-documentation)
下面是伪code:
String pathToSdCard = Environment.getExternalStorageDirectory().getAbsolutePath();
new File(pathToSdCard ).list();
这篇关于在android系统文件浏览器的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文