Android Question Mobile Vision Library Error

jarinashameem

Member
Licensed User
Longtime User
Hi

I am getting Below error on using barcode Detector (mobile Vision Library) after make Runtime Permissions and Target to 26
Please help

android.os.FileUriExposedException: file:///storage/emulated/0/picture.jpg exposed beyond app through ClipData.Item.getUri()
at android.os.StrictMode.onFileUriExposed(StrictMode.java:1814)
at android.net.Uri.checkFileUriExposed(Uri.java:2346)
at android.content.ClipData.prepareToLeaveProcess(ClipData.java:832)
at android.content.Intent.prepareToLeaveProcess(Intent.java:8914)
at android.content.Intent.prepareToLeaveProcess(Intent.java:8899)
at android.app.Instrumentation.execStartActivity(Instrumentation.java:1517)
at android.app.Activity.startActivityForResult(Activity.java:4226)
at android.app.Activity.startActivityForResult(Activity.java:4185)
at anywheresoftware.b4a.BA.startActivityForResult(BA.java:540)
at de.donmanfred.BarcodeDetectorwrapper.takePicture(BarcodeDetectorwrapper.java:330)
at com.fieldapplication.ctaindia.main._btn_takephoto_click(main.java:3248)
at java.lang.reflect.Method.invoke(Native Method)
at anywheresoftware.b4a.BA.raiseEvent2(BA.java:186)
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:5675)
at android.view.View$PerformClick.run(View.java:22646)
at android.os.Handler.handleCallback(Handler.java:836)
at android.os.Handler.dispatchMessage(Handler.java:103)
at android.os.Looper.loop(Looper.java:203)
at android.app.ActivityThread.main(ActivityThread.java:6251)
at java.lang.reflect.Method.invoke(Native Method)
at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:1075)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:936)
 

DonManfred

Expert
Licensed User
Longtime User
Upvote 0

jarinashameem

Member
Licensed User
Longtime User
I am Using MobileVision Library , It doesnt Works on Target Version 26, I have added Permissions as per your link , Please help
 
Upvote 0
Cookies are required to use this site. You must accept them to continue using the site. Learn more…