Reputation: 333
I have implemented a PhoneGap application for andriod and iPhone using jQuery Mobile and java script,
In the part of my app i have camera option. and i need to use that image to place in a position.
Thats finished.
I have 2 buttons:
1.Capture Image (Done √)
2. Choose File From Gallery
Capture image By click Capture button and place that captured image in the required position. its done
Now i want the functionality for Get images from Gallery by click another button 'Gallery button'
Upvotes: 0
Views: 2079
Reputation: 990
Take a look at the PhoneGap Camera Doc
If Camera.sourceType = Camera.PictureSourceType.PHOTOLIBRARY or Camera.PictureSourceType.SAVEDPHOTOALBUM, then a photo chooser dialog is shown, from which a photo from the album can be selected.
For more information check out this thread.
*Add a onclick event listener to your button where you can call the phonegap function ;)
Upvotes: 3