Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我必须访问这个文件:file:///mnt/sdcard/DCIM/Camera/1381243874374.jpg
它应该在内部存储中.. 但是如果我给 Android 这个路径,它就无法加载文件。有什么建议么?
谢谢!
好的,我已经这样解决了:
String[] split = path.split("sdcard/"); path = split[1]; File sd = Environment.getExternalStorageDirectory(); path = sd.getAbsolutePath() + '/' + path;