new in Intel-XDK .... build small app using camera and cache objects
- app worked at Emulator ... but when i tried test it on android mobile .. app started but i cannt use it ... buttons donnot show any effect which should do it !!! note : app on android do all effects which do not use intel.xdk what is the problem .... thanks a lot
document.addEventListener
("intel.xdk.camera.picture.add",picOk);
function takePic(){
intel.xdk.camera.takePicture(100,false,"jpg");
}
function importpic(){
intel.xdk.camera.importPicture();
}
function picOk(pic){
if(pic.success==true)
{
var imgSrc=intel.xdk.camera.getPictureURL(pic.filename);
$('#content').append("<img src='"+imgSrc+"' />");
}
else{
if(pic.message!=undefined) alert(pic.message);
else alert("error to toake picture");
}
}