0

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'

coderslay
  • 13,960
  • 31
  • 73
  • 121
user1425472
  • 333
  • 2
  • 10
  • 28

1 Answers1

3

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 ;)

Community
  • 1
  • 1
F481
  • 990
  • 8
  • 22