marina31714 opened a new issue, #806:
URL: https://github.com/apache/cordova-plugin-camera/issues/806

   # Bug Report
   
   ## Problem
   
   When I take a picture with the tablet and accept, the application crashes.
   
   ### What is expected to happen?
   
   The image is successfully added and the alert is displayed. 
   
   ### What does actually happen?
   
   The application is crashed.
   
   ## Information
   <!-- Include all relevant information that might help understand and 
reproduce the problem -->
   
   When select image from gallery it working fine
   When change option to allowEdit to true, no crashes but showed this alert: 
You can't edit this image.
   
   ### Command or Code
   <!-- What command or code is needed to reproduce the problem? -->
   
   `function setOptions(srcType) {
                   var options = {
                       // Some common settings are 20, 50, and 100
                       quality: 75,
                       destinationType: Camera.DestinationType.FILE_URI,
                       // In this app, dynamically set the picture source, 
Camera or photo gallery
                       sourceType: srcType,
                       encodingType: Camera.EncodingType.JPEG,
                       mediaType: Camera.MediaType.PICTURE,
                       allowEdit: false,
                       correctOrientation: true
                   }
                   return options;
               }`
   
   
                           var srcType = Camera.PictureSourceType.CAMERA;
                           var options = setOptions(srcType);
   
                           navigator.camera.getPicture(function 
cameraSuccess(imageUri) {
   
                               alert("get picture");
   
                           }, function cameraError(error) {
                               console.debug("Unable to obtain picture: " + 
error, "app");
   
                           }, options);
   
   
   
   ### Environment, Platform, Device
   <!-- In what environment, on what platform or on which device are you 
experiencing the issue? -->
   
   Lenovo tab m10 hd 
   Android: 11
   
   ### Version information
   <!-- 
   What are relevant versions you are using?
   For example:
   Cordova: Cordova CLI, Cordova Platforms, Cordova Plugins 
   Other Frameworks: Ionic Framework and CLI version
   Operating System, Android Studio, Xcode etc.
   -->
   Cordova 11.0.0
   Cordova platform: Android 10.1.2
   Cordova plugins: 
   
![image](https://user-images.githubusercontent.com/47326565/190383961-f4f32c1a-1018-443f-93fd-b1ec823e745b.png)
   
   Android studio: 2021.1
   Android sdk-tools: 
   
![image](https://user-images.githubusercontent.com/47326565/190384634-6015b27d-89b3-47fb-af39-5cb7e1de2a2a.png)
   Java Jdk:
   
![image](https://user-images.githubusercontent.com/47326565/190384698-3e9d049e-689f-4389-bc40-b8be9facb4c0.png)
   Gradle: 
   
![image](https://user-images.githubusercontent.com/47326565/190384735-9e7e5f8d-ca3d-416e-9c32-290bf510705f.png)
   
   Operating System: Windows 10 Home
   
   ## Checklist
   <!-- Please check the boxes by putting an x in the [ ] like so: [x] -->
   
   - [x] I searched for existing GitHub issues
   - [x] I updated all Cordova tooling to most recent version
   - [ ] I included all the necessary information above
   


-- 
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.

To unsubscribe, e-mail: [email protected]

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