Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

capturing Doesn't work on android 10 #142

Open
OmkarSsawant opened this issue Oct 23, 2020 · 9 comments
Open

capturing Doesn't work on android 10 #142

OmkarSsawant opened this issue Oct 23, 2020 · 9 comments

Comments

@OmkarSsawant
Copy link

OmkarSsawant commented Oct 23, 2020

On API 29 ,
when , I capture image . I get this error

2020-10-24 20:44:58.883 6744-6744/com.android.camera2 E/CAM_StateSavePic: exception while saving result to URI: Optional.of(content://com.example.provider/quick_scans/QuickScans/IMG_20201024_204438.jpg)
    java.io.FileNotFoundException: open failed: ENOENT (No such file or directory)
        at android.database.DatabaseUtils.readExceptionWithFileNotFoundExceptionFromParcel(DatabaseUtils.java:149)
        at android.content.ContentProviderProxy.openAssetFile(ContentProviderNative.java:631)
        at android.content.ContentResolver.openAssetFileDescriptor(ContentResolver.java:1521)
        at android.content.ContentResolver.openOutputStream(ContentResolver.java:1227)
        at android.content.ContentResolver.openOutputStream(ContentResolver.java:1203)
        at com.android.camera.captureintent.state.StateSavingPicture.onEnter(StateSavingPicture.java:85)
        at com.android.camera.captureintent.stateful.StateMachineImpl.jumpToState(StateMachineImpl.java:62)
        at com.android.camera.captureintent.stateful.StateMachineImpl.processEvent(StateMachineImpl.java:110)
        at com.android.camera.captureintent.state.StateOpeningCamera$9.onClick(StateOpeningCamera.java:307)
        at android.view.View.performClick(View.java:7125)
        at android.view.View.performClickInternal(View.java:7102)
        at android.view.View.access$3500(View.java:801)
        at android.view.View$PerformClick.run(View.java:27336)
        at android.os.Handler.handleCallback(Handler.java:883)
        at android.os.Handler.dispatchMessage(Handler.java:100)
        at android.os.Looper.loop(Looper.java:214)
        at android.app.ActivityThread.main(ActivityThread.java:7356)
        at java.lang.reflect.Method.invoke(Native Method)
        at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:492)
        at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:930)
2020-10-24 20:44:59.935 3262-3457/com.google.android.gms.persistent E/aoob: Phenotype API error. Event # ccoz@1527f2fe, EventCode: 12 [CONTEXT service_id=51 ]
    aonf: 29503
        at aooh.b(:com.google.android.gms@[email protected] (040700-319035315):27)
        at aoob.a(:com.google.android.gms@[email protected] (040700-319035315):91)
        at aoob.a(:com.google.android.gms@[email protected] (040700-319035315):86)
        at aabt.run(:com.google.android.gms@[email protected] (040700-319035315):9)
        at bnin.run(:com.google.android.gms@[email protected] (040700-319035315):2)
        at soy.b(:com.google.android.gms@[email protected] (040700-319035315):12)
        at soy.run(:com.google.android.gms@[email protected] (040700-319035315):7)
        at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1167)
        at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:641)
        at sux.run(:com.google.android.gms@[email protected] (040700-319035315):0)
        at java.lang.Thread.run(Thread.java:919)

Please help me to find a solution .

@OmkarSsawant OmkarSsawant changed the title library Doesn't work in android 10 capturing Doesn't work on android 10 Oct 24, 2020
@Rohitsachdeva
Copy link

same issue facing me too

@sunil-singh-chaudhary
Copy link

did you add android:requestLegacyExternalStorage="true" on manifest inside application tag

@mishraaditya595
Copy link

did you add android:requestLegacyExternalStorage="true" on manifest inside application tag

That won't work from Android 11 onwards.

@HenryTH45
Copy link

Did you Find a Solution?

@vivekcubeztech
Copy link

vivekcubeztech commented Apr 22, 2021

same issue...any solution.?

did you add android:requestLegacyExternalStorage="true" on manifest inside application tag

its doesn't work.

@ashwinjawale24
Copy link

@OmkarSsawant i figure out the solution
Remove app manifest file provider beacause scanlibrary manifest has its own fileprovider that will work,
its working for me

@mishraaditya595
Copy link

@OmkarSsawant i figure out the solution
Remove app manifest file provider beacause scanlibrary manifest has its own fileprovider that will work,
its working for me

Hey @OmkarSsawant, does your app target Android 11+ frameworks?

@OmkarSsawant
Copy link
Author

@OmkarSsawant i figure out the solution
Remove app manifest file provider beacause scanlibrary manifest has its own fileprovider that will work,
its working for me

Hey @OmkarSsawant, does your app target Android 11+ frameworks?

Yes my app does target API 30 +

@krabouilleur
Copy link

@OmkarSsawant i figure out the solution Remove app manifest file provider beacause scanlibrary manifest has its own fileprovider that will work, its working for me

@ashwinjawale24 what do we need to remove ? and, in the manifest of scanlibrary or in the manifest of the app ?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

8 participants