Using Phonegap 1.1 and Ecplise with ADT and Android version 2.2. Followed documentation for calling phonegap camera API and returning URI as shown below. **********Example Code*************** function getPhoto(source) { navigator.camera.getPicture(onPhotoURISuccess, onFail, { quality: 50, destinationType: Camera.DestinationType.FILE_URI }); }
The above call fails in the emulator with effectively no error message. The "onFail" function is triggered, but the message object passed into the function is undefined. Not sure if it's something in my project setup in Eclipse or not, although i've followed the tutorial closely that describes step by step for creating a phonegap android app in eclipse.