How To Let The User To Choose From Gallery Or Take Picture Option In Cordova
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:
Did you take a look at their Camera object? They have a clean documentation on the same. Another third party lib that you may want to look into:
https://github.com/Arcticus/Eirene/tree/master/Image%20Picker
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"