callback/callback-android — Issue #4: camera issue
Author: conchitabh
Created: 2011-10-27 14:59:46+00:00
State: open

Hi, i'm new on mobile development, I started to work with phonegap for android, and I have an issue with the camera, I already saw the other issues about it, but i still have the same problem:
when i use getpicture (from camera), i took the picture and save it but when the app have to continue and show the picture on it, it return me to the main menu of the app, not to the section where i was before taking the picture.
It only happens on android 2.2 device, i tried it on 2.1 device without problems. I tried with both options (64 bits and Uri file) with the same result.
This is the code for base 64

navigator.camera.getPicture(function onSuccess(imageData) {
var image = document.getElementById('qimageencode'+questionID);
image.src = "data:image/jpeg;base64," + imageData;
}, function onFail(message) {
alert('Failed because: ' + message);
}, { quality: 50 });