N nicieri Active Member Licensed User Longtime User Sep 24, 2018 #1 Hi, I have this problem with the version 24+ I tried everything with rp.PERMISSION_WRITE_EXTERNAL_STORAGE All... but I have this error. I tried to change File.DirRootExternal for multilpe options... I only need that my app can save the photo, the location is not important. cam.TakePicture(File.DirRootExternal,"tmp.jpg") Can any help? Thanks.
Hi, I have this problem with the version 24+ I tried everything with rp.PERMISSION_WRITE_EXTERNAL_STORAGE All... but I have this error. I tried to change File.DirRootExternal for multilpe options... I only need that my app can save the photo, the location is not important. cam.TakePicture(File.DirRootExternal,"tmp.jpg") Can any help? Thanks.
DonManfred Expert Licensed User Longtime User Sep 24, 2018 #2 android.jar / targetSdkVersion / minSdkVersion FileProvider Upvote 0
M migliore150267 Member Licensed User Longtime User Oct 1, 2018 #3 I solved adding the following code in the activity that use the library EZcamera: #if java import android.os.StrictMode; public void _onCreate() { StrictMode.VmPolicy.Builder builder = new StrictMode.VmPolicy.Builder(); StrictMode.setVmPolicy(builder.build()); builder.detectFileUriExposure(); } #End If Upvote 0
I solved adding the following code in the activity that use the library EZcamera: #if java import android.os.StrictMode; public void _onCreate() { StrictMode.VmPolicy.Builder builder = new StrictMode.VmPolicy.Builder(); StrictMode.setVmPolicy(builder.build()); builder.detectFileUriExposure(); } #End If
Erel B4X founder Staff member Licensed User Longtime User Oct 2, 2018 #4 The correct solution is to use FileProvider. You don't need this library. Better implementation: Intent Based Camera Upvote 0
The correct solution is to use FileProvider. You don't need this library. Better implementation: Intent Based Camera