I took this code that other participants mentioned and I tested it and it works fine, the only thing I want is to save the photo in a new folder that I create or even among album of photos from the camera to avoid having to go to the hidden path where currently is saved .. please help me
Asked
Active
Viewed 3,714 times
1 Answers
1
I created a phonegap app, the picture i take with the camera are getting saved in the standard gallery folder on the phone.
Try my code :)
function capturePhoto() {
// Take picture using device camera and retrieve image as base64-encoded string
navigator.camera.getPicture(onPhotoDataSuccess, onFail,{
quality : 25,
destinationType : Camera.DestinationType.FILE_URI,
sourceType : Camera.PictureSourceType.CAMERA,
allowEdit : true,
encodingType: Camera.EncodingType.JPEG,
targetWidth: 500,
targetHeight: 500,
popoverOptions: CameraPopoverOptions,
saveToPhotoAlbum: true });
}
Btw.. its the saveToPhotoAlbum: true that you are missing it looks like, anyways try my code out and i hope it works :)

Daniel
- 2,002
- 5
- 20
- 32
-
thank you Daniel, I proved the code and saveToPhotoAlbum: true was what I was missing. – toty Dec 17 '12 at 22:45
-
Great :) Im happy to hear so. :) – Daniel Dec 17 '12 at 22:46
-
Remember to accept the answer so we can get the question closed :) – Daniel Dec 17 '12 at 22:47