I have used "ACL Library (Advance Camera Library)".It was working fine before uprgrading B4X 7.X version.
When I run this application it shows an error message
Logger connected to: LENOVO Lenovo A2010-a
--------- beginning of system
--------- beginning of main
** Activity (main) Pause, UserClosed = false **
Copying updated assets files (2)
** Activity (main) Create, isFirst = true **
autoversion: 130.0
compilation time: 02/19/2018 19:38:24
** Activity (main) Resume **
** Activity (main) Pause, UserClosed = false **
** Activity (main) Create, isFirst = false **
autoversion: 130.0
compilation time: 02/19/2018 19:38:24
** Activity (main) Resume **
** Activity (main) Pause, UserClosed = false **
** Activity (entry) Create, isFirst = true **
** Activity (entry) Resume **
Error occurred on line: 239 (Entry)
at libcore.io.IoBridge.open(IoBridge.java:496)
at java.io.FileInputStream.<init>(FileInputStream.java:76)
at anywheresoftware.b4a.objects.streams.File.OpenInput(File.java:209)
at anywheresoftware.b4a.objects.streams.File.Copy(File.java:335)
at com.cabinet.entry._imgcamera_click(entry.java:786)
at java.lang.reflect.Method.invoke(Native Method)
at java.lang.reflect.Method.invoke(Method.java:372)
at anywheresoftware.b4a.shell.Shell.runMethod(Shell.java:710)
at anywheresoftware.b4a.shell.Shell.raiseEventImpl(Shell.java:342)
at anywheresoftware.b4a.shell.Shell.raiseEvent(Shell.java:249)
at java.lang.reflect.Method.invoke(Native Method)
at java.lang.reflect.Method.invoke(Method.java:372)
at anywheresoftware.b4a.ShellBA.raiseEvent2(ShellBA.java:139)
at anywheresoftware.b4a.BA.raiseEvent2(BA.java:170)
at anywheresoftware.b4a.BA.raiseEvent(BA.java:166)
at anywheresoftware.b4a.objects.ViewWrapper$1.onClick(ViewWrapper.java:80)
at android.view.View.performClick(View.java:4848)
at android.view.View$PerformClick.run(View.java:20260)
at android.os.Handler.handleCallback(Handler.java:815)
at android.os.Handler.dispatchMessage(Handler.java:104)
at android.os.Looper.loop(Looper.java:194)
at android.app.ActivityThread.main(ActivityThread.java:5624)
at java.lang.reflect.Method.invoke(Native Method)
at java.lang.reflect.Method.invoke(Method.java:372)
at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:959)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:754)
Caused by: android.system.ErrnoException: open failed: ENOENT (No such file or directory)
at libcore.io.Posix.open(Native Method)
at libcore.io.BlockGuardOs.open(BlockGuardOs.java:186)
at libcore.io.IoBridge.open(IoBridge.java:482)
... 25 more
** Activity (entry) Pause, UserClosed = false **
When I run this application it shows an error message
Logger connected to: LENOVO Lenovo A2010-a
--------- beginning of system
--------- beginning of main
** Activity (main) Pause, UserClosed = false **
Copying updated assets files (2)
** Activity (main) Create, isFirst = true **
autoversion: 130.0
compilation time: 02/19/2018 19:38:24
** Activity (main) Resume **
** Activity (main) Pause, UserClosed = false **
** Activity (main) Create, isFirst = false **
autoversion: 130.0
compilation time: 02/19/2018 19:38:24
** Activity (main) Resume **
** Activity (main) Pause, UserClosed = false **
** Activity (entry) Create, isFirst = true **
** Activity (entry) Resume **
Error occurred on line: 239 (Entry)
java.io.FileNotFoundException: /mnt/sdcard/Datadir/Diary/gvvv.JPG: open failed: ENOENT (No such file or directory)B4X:Sub ImgCamera_Click StrcFlag = "C" Ret = InpDlg.Show("Enter Camera File Name","Camera","OK","Cancel","",Null) If InpDlg.Response <> -3 Then StrFileName = InpDlg.Input.Trim & ".JPG" 'TxtFile.Text = Main.StrDiary_Path & StrFileName OpenCam(Main.StrDiary_Path,StrFileName) File.Copy(Main.StrDiary_Path ,StrFileName,Main.StrDiary_Path,StrFileName) Bitmaps.Put(StrFileName,Main.StrDiary_Path) End If End Sub Sub Camera1_Ready (Success As Boolean) If Success Then Camera1.Quality = 50 Camera1.StartPreview Else ToastMessageShow("Cannot open camera.", True) End If End Sub Sub OpenCam(Directory As String, PictureName As String) Dim i As Intent i.Initialize("android.media.action.IMAGE_CAPTURE", "") i.PutExtra("output", ParseUri("file://" & File.Combine(Directory, PictureName))) StartActivity(i) End Sub Sub ParseUri(FileName As String) As Object Dim r As Reflector Return r.RunStaticMethod("android.net.Uri", "parse", Array As Object(FileName), Array As String("java.lang.String")) End Sub
at libcore.io.IoBridge.open(IoBridge.java:496)
at java.io.FileInputStream.<init>(FileInputStream.java:76)
at anywheresoftware.b4a.objects.streams.File.OpenInput(File.java:209)
at anywheresoftware.b4a.objects.streams.File.Copy(File.java:335)
at com.cabinet.entry._imgcamera_click(entry.java:786)
at java.lang.reflect.Method.invoke(Native Method)
at java.lang.reflect.Method.invoke(Method.java:372)
at anywheresoftware.b4a.shell.Shell.runMethod(Shell.java:710)
at anywheresoftware.b4a.shell.Shell.raiseEventImpl(Shell.java:342)
at anywheresoftware.b4a.shell.Shell.raiseEvent(Shell.java:249)
at java.lang.reflect.Method.invoke(Native Method)
at java.lang.reflect.Method.invoke(Method.java:372)
at anywheresoftware.b4a.ShellBA.raiseEvent2(ShellBA.java:139)
at anywheresoftware.b4a.BA.raiseEvent2(BA.java:170)
at anywheresoftware.b4a.BA.raiseEvent(BA.java:166)
at anywheresoftware.b4a.objects.ViewWrapper$1.onClick(ViewWrapper.java:80)
at android.view.View.performClick(View.java:4848)
at android.view.View$PerformClick.run(View.java:20260)
at android.os.Handler.handleCallback(Handler.java:815)
at android.os.Handler.dispatchMessage(Handler.java:104)
at android.os.Looper.loop(Looper.java:194)
at android.app.ActivityThread.main(ActivityThread.java:5624)
at java.lang.reflect.Method.invoke(Native Method)
at java.lang.reflect.Method.invoke(Method.java:372)
at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:959)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:754)
Caused by: android.system.ErrnoException: open failed: ENOENT (No such file or directory)
at libcore.io.Posix.open(Native Method)
at libcore.io.BlockGuardOs.open(BlockGuardOs.java:186)
at libcore.io.IoBridge.open(IoBridge.java:482)
... 25 more
** Activity (entry) Pause, UserClosed = false **