xuyonghua edited a comment on issue #642:
URL: 
https://github.com/apache/cordova-plugin-camera/issues/642#issuecomment-833184450


   The storage has changed after Android11, and the APP can only access its own 
private directory or public directory, and cannot access the private directory 
of other apps. You call the system’s built-in crop that does not belong to your 
app, and access to your app’s private directory is not allowed. Please add the 
following compatible code to the createCaptureFile method.
   `
   
   if (Build.VERSION.SDK_INT >= 30) {
          return new 
File(Environment.getExternalStoragePublicDirectory(DIRECTORY_PICTURES), 
fileName);
   }
   
   `


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
[email protected]



---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to