You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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
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
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);
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
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
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; }
Environment, Platform, Device
Lenovo tab m10 hd
Android: 11
Version information
Cordova 11.0.0
Cordova platform: Android 10.1.2
Cordova plugins:
Android studio: 2021.1
Android sdk-tools:
Java Jdk:
Gradle:
Operating System: Windows 10 Home
Checklist
The text was updated successfully, but these errors were encountered: