jhansireddy / AndroidScannerDemo

ScanLibrary is an android document scanning library built on top of OpenCV, using the app you will be able to select the exact edges and crop the document accordingly from the selected 4 edges and change the perspective transformation of the cropped image.
MIT License
1.07k stars 472 forks source link

Camera not working: onActivityResult-1 #157

Open krabouilleur opened 1 year ago

krabouilleur commented 1 year ago

Hi,

I'm testing the library on Android Studio, the minSdk is 29 and the targetSdk is 32.

when I want to use the camera: I take the photo, then I click on "Ok" button then, there is an error (black screen on device):

D/: onActivityResult-1
W/System.err: java.io.FileNotFoundException: open failed: ENOENT (No such file or directory)

In my manifest there is the permissions <uses-permission android:name="android.permission.CAMERA" /> <uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE" />

I tried to add in the manifest the attribute android:requestLegacyExternalStorage="true"

But the is always the error.

Is the library is working yet ?

My device: Android 10 (API level 29), Samsung J6

dhiman11 commented 1 year ago

Have you found any solution for this ?