将Android文件保存到外部存储
String filename = "MyApp/MediaTag/MediaTag-"+objectId+".png";File file = new File(Environment.getExternalStorageDirectory(), filename);FileOutputStream fos;fos = new FileOutputStream(file);fos.write(mediaTagBuffer);fos.flush();fos.close();
java.io.FileNotFoundException:/mnt/sdCard/myApp/mediacard/mediacard-0.png(没有此类文件或目录)
fos = new FileOutputStream(file);
"MyApp/MediaTag-"+objectId+"
Disk Drive
?
精慕HU
相关分类