File file_path =
null
;
try
{
System.out.println(
" path : "
+path);
file_path =
new
File(CommonConst.EXTERNAL_DATA_DIR,
"tmp/deletable/"
);
"file_path: "
+ file_path);
if
(!file_path.isDirectory()){
"create dir"
file_path.mkdir();
}
FileOutputStream out =
FileOutputStream(file_path + fileNm);
mBitmap.compress(Bitmap.CompressFormat.JPEG ,
100
, out);
out.close();
catch
(Exception e) {
Unable to decode stream: java.io.FileNotFoundException: /storage/emulated/0/Android/data/com/tmp/deletable1447155798646.jpg: open failed: ENOENT (No such file or directory)
권한이 없어서 발생한 것으로 보입니다
외부저장소에 쓸 권한을 갖고 있는지부터 확인해보시고
아무데나 다 쓸 수 있는 게 아니라 /storage/emulated/0/Android/data/패키지명 이하에만 가능합니다
소스에 적힌 저 경로가 패키지명과 같은지도 확인하셔야 할 것 같습니다