Unable to take picture and save in Android 4 devices.
Steps to reproduce:
1. Take a picture
2. Click the Save button inside the camera app
success : function( event ) {
var image;
var resizedOptions = {
width : 640,
height : 480,
format : ImageFactory.PNG
};
try {
var newFile = Ti.Filesystem.createTempFile(Ti.Filesystem.applicationDataDirectory, 'temp.jpg');
newFile.write(image);
image = ImageFactory.imageAsResized(newFile.read(), resizedOptions);
} catch( e ) {
Ti.API.info("App.UI.Ticket.Actions.CameraField image saving failed " + e + " " + e.error);
image = false;
}
if (image && image.mimeType && (image.mimeType === "image/png" || image.mimeType === "image/jpeg")) {
//SUCCESS
} else {
//FAILURE
}
}
This appears to be a code snippet and not the complete test case. Please provide a complete test case and make sure that Support team can reproduce it in house before moving it to TIMOB queue.
Closing ticket as the information that was requested was never provided.