Emmz
Posts: 0
Joined: Sat Jun 23, 2012 11:06 pm

Phonegap 2.0 and Camera

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 !

Andrés Méndez
Posts: 0
Joined: Thu Apr 18, 2013 6:13 pm

Phonegap 2.0 and Camera

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?

maxkatz
Posts: 0
Joined: Fri Aug 13, 2010 3:24 pm

Phonegap 2.0 and Camera

What option do you want to add?

Maryna Brodina
Posts: 0
Joined: Thu Apr 05, 2012 7:27 am

Phonegap 2.0 and Camera

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

abigdreamer
Posts: 0
Joined: Fri Jul 12, 2013 7:20 pm

Phonegap 2.0 and Camera

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

abigdreamer
Posts: 0
Joined: Fri Jul 12, 2013 7:20 pm

Phonegap 2.0 and Camera

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

Igor
Posts: 0
Joined: Tue Apr 02, 2013 12:05 pm

Phonegap 2.0 and Camera

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

Igor
Posts: 0
Joined: Tue Apr 02, 2013 12:05 pm

Phonegap 2.0 and Camera

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

Return to “Issues”