[BUG] Camera: Android 10: java.io.IOException: No such file or directory
salim-lachdhaf opened this issue · 0 comments
Bug Report
on Android 10 camera does not open and i got this exception:
W/System.err( 7172): java.io.IOException: No such file or directory
W/System.err( 7172): at java.io.UnixFileSystem.createFileExclusively0(Native Method)
W/System.err( 7172): at java.io.UnixFileSystem.createFileExclusively(UnixFileSystem.java:317)
W/System.err( 7172): at java.io.File.createTempFile(File.java:2018)
W/System.err( 7172): at com.sangcomz.fishbun.util.CameraUtil.createImageFile(CameraUtil.java:64)
W/System.err( 7172): at com.sangcomz.fishbun.util.CameraUtil.takePicture(CameraUtil.java:31)
W/System.err( 7172): at com.sangcomz.fishbun.ui.album.AlbumController.takePicture(AlbumController.java:151)
W/System.err( 7172): at com.sangcomz.fishbun.ui.album.AlbumActivity$1.onClick(AlbumActivity.java:105)
W/System.err( 7172): at android.view.View.performClick(View.java:7125)
W/System.err( 7172): at android.view.View.performClickInternal(View.java:7102)
W/System.err( 7172): at android.view.View.access$3500(View.java:801)
W/System.err( 7172): at android.view.View$PerformClick.run(View.java:27336)
W/System.err( 7172): at android.os.Handler.handleCallback(Handler.java:883)
W/System.err( 7172): at android.os.Handler.dispatchMessage(Handler.java:100)
W/System.err( 7172): at android.os.Looper.loop(Looper.java:214)
W/System.err( 7172): at android.app.ActivityThread.main(ActivityThread.java:7356)
W/System.err( 7172): at java.lang.reflect.Method.invoke(Native Method)
W/System.err( 7172): at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:492)
W/System.err( 7172): at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:930)