Capture Picture and rename it using cordova intel xdk.(after capturing take default name as "test.jpg" every time & 2nd time its override.)

  • 2
  • Problem
  • Updated 4 years ago
  • Not a Problem
document.addEventListener("intel.xdk.camera.picture.add",onSuccessCam);
document.addEventListener("intel.xdk.camera.picture.busy",onSuccessCam);
document.addEventListener("intel.xdk.camera.picture.cancel",onSuccessCam);
function capturePhoto() {
intel.xdk.camera.takePicture(100,true,"jpg");
}
function onSuccessCam(evt) {
if (evt.success === true)
{
image.src=intel.xdk.camera.getPictureURL(evt.filename);
image.id=evt.filename;
}
}
Photo of Nilesh Pathade

Nilesh Pathade

  • 1 Post
  • 0 Reply Likes
  • frustrated

Posted 5 years ago

  • 2
Photo of Jaime Muñoz Oyarzún

Jaime Muñoz Oyarzún

  • 1 Post
  • 0 Reply Likes
hi i want to know if you rename a picture please ?