File dir = Environment.getExternalStorageDirectory();
File yourFile = new File(dir, "path/to/the/file/inside/the/sdcard.ext");
避免使用String path = Environment.getExternalStorageDirectory().getAbsolutePath();
FileInputStream iStream = new FileInputStream(path);
有些时候这种方法不好用
访问SD卡文件
688

被折叠的 条评论
为什么被折叠?



