
사진의 경로를 가져와서 뷰에 그 사진을 나타내려고 합니다.
그런데
Bitmap bm = MediaStore.Images.Media.getBitmap(getContentResolver(), frame_Uri);
이 부분에서 익셉션이 발생합니다. 사진폴더도 있고 파일도 있는데, 어디서 잘못 된건지를 모르겠습니다.ㅠ
W/System.err: java.io.FileNotFoundException: /null: open failed: ENOENT (No such file or directory)
W/System.err: at libcore.io.IoBridge.open(IoBridge.java:456)
W/System.err: at java.io.FileInputStream.<init>(FileInputStream.java:76)
W/System.err: at java.io.FileInputStream.<init>(FileInputStream.java:103)
W/System.err: at android.content.ContentResolver.openInputStream(ContentResolver.java:664)
W/System.err: at android.provider.MediaStore$Images$Media.getBitmap(MediaStore.java:849)
W/System.err: at com.example.samsungpc.mypreview.FrameTestActivity$AsianaView.<init>(FrameTestActivity.java:68)
W/System.err: at com.example.samsungpc.mypreview.FrameTestActivity.onCreate(FrameTestActivity.java:45)
W/System.err: at android.app.Activity.performCreate(Activity.java:6020)
W/System.err: at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1105)
W/System.err: at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2259)
W/System.err: at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2366)
W/System.err: at android.app.ActivityThread.access$800(ActivityThread.java:149)
W/System.err: at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1284)
W/System.err: at android.os.Handler.dispatchMessage(Handler.java:102)
W/System.err: at android.os.Looper.loop(Looper.java:135)
W/System.err: at android.app.ActivityThread.main(ActivityThread.java:5290)
W/System.err: at java.lang.reflect.Method.invoke(Native Method)
W/System.err: at java.lang.reflect.Method.invoke(Method.java:372)
W/System.err: at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:908)
W/System.err: at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:703)
W/System.err: Caused by: android.system.ErrnoException: open failed: ENOENT (No such file or directory)
W/System.err: at libcore.io.Posix.open(Native Method)
W/System.err: at libcore.io.BlockGuardOs.open(BlockGuardOs.java:186)
W/System.err: at libcore.io.IoBridge.open(IoBridge.java:442)