Where I make mistakes? I would like to see image after save button click. I see only white screen without returned image. I am using Android and Galaxy S device.
$(function(){
document.addEventListener("deviceready", phonegapLoaded, false);
function phonegapLoaded(){
}
$("#vyfotit").click(function(){
navigator.camera.getPicture(onSuccess, onError, {quality: 70, destinationType: Camera.DestinationType.FILE_URI});
});
function onSuccess(imageURI){
var image = document.getElementById("image");
image.src = imageURI;
image.style.display = block;
}
function onError(message){
navigator.notification.alert("Failed because: " + message);
}
});