Skip to content Skip to sidebar Skip to footer

How To Let The User To Choose From Gallery Or Take Picture Option In Cordova

I want to let the user to add a pic to the Cordova application and I would like to let the user to choose the pic from his albums or take a picture instantly. How do I provide such

Solution 1:

Thanks a lot @GenieWanted & @Sumn2u for your responses, special thanks to @GenieWanted for your time and extended support.

From the answer for the following question I understand that there is no direct solution provided by Cordova to give the user an option to choose from multiple Camera.PictureSourceType. You have to pop a native/custom alert with option to choose from Gallery or Camera.

Cheers!

Solution 2:

Solution 3:

you have to see the proper documentation of phonegap. you are using camera you can go http://docs.phonegap.com/en/3.0.0/cordova_camera_camera.md.html#Camera for camera API

and for the storage API you have to go http://docs.phonegap.com/en/3.0.0/cordova_storage_storage.md.html#Storage for storage API

By reading this two and combining these two it will work . Further you can read the whole documentation

Post a Comment for "How To Let The User To Choose From Gallery Or Take Picture Option In Cordova"