You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@cordova.apache.org by GitBox <gi...@apache.org> on 2021/05/06 02:46:37 UTC

[GitHub] [cordova-plugin-camera] xuyonghua edited a comment on issue #642: Unable to create bitmap!

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:
users@infra.apache.org



---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@cordova.apache.org
For additional commands, e-mail: issues-help@cordova.apache.org