Page 1 of 1

Phonegap 2.0 and Camera

Posted: Tue Sep 25, 2012 2:10 pm
by Emmz

Now that were using phonegap 2.0
If your using the camera api and need to keep the pictures in the album...
Ensure you add the
saveToPhotoAlbum: true
To the phonegap camera options !


Phonegap 2.0 and Camera

Posted: Fri May 17, 2013 8:00 pm
by Andrés Méndez

I have been looking to add an option to the camera service, but there's no option to add any other option.

Please, where do you add it?


Phonegap 2.0 and Camera

Posted: Fri May 17, 2013 8:22 pm
by maxkatz

What option do you want to add?


Phonegap 2.0 and Camera

Posted: Fri May 17, 2013 8:37 pm
by Maryna Brodina

Hello! You would need to download source code (for Eclipse or xCode project), find cordova.js file and replace line
codevar saveToPhotoAlbum = !!options.saveToPhotoAlbum;/code with the following
codevar saveToPhotoAlbum = true;/code


Phonegap 2.0 and Camera

Posted: Sun Feb 16, 2014 9:03 pm
by abigdreamer

Does this allow for the picture to go to the Album as well as the app?


Phonegap 2.0 and Camera

Posted: Sun Feb 16, 2014 9:04 pm
by abigdreamer

var saveToPhotoAlbum = true;
Where would I add this? in javascript after sending?


Phonegap 2.0 and Camera

Posted: Sun Feb 16, 2014 9:22 pm
by Igor

You could find more description here: http://docs.phonegap.com/en/3.3.0/cor...


Phonegap 2.0 and Camera

Posted: Sun Feb 16, 2014 9:25 pm
by Igor

According Marina reply, you should export eclipse or xCode project and replace this code in cordova.js file.