PhoneGap camera not able to confirm after capturing an image
cordova
Solution
I had the same issue running an app built with PhoneGap Build on a Galaxy Nexus running Android 4.2. I was able to solve this issue by using the following two feature directives in my config.xml:
<feature name="http://api.phonegap.com/1.0/camera"/>
<feature name="http://api.phonegap.com/1.0/file"/>
Unfortunately, there were no errors coming from logcat, but this seems to do the trick. Hope this helps!
Problem
I'm making an app to test PhoneGap's capabilities, so that i might later use it for larger projects. I was trying to get the camera API working by building a simple test app that just captures and displays an image. The weird thing is that when i press my capture button which triggers `navigate.camera.getPicture()` I can take a picture but not confirm the picture so that the process returns to my app and gives me the captured image. All the other buttons are working as expected, so I can for example press cancel and it correctly returns back to my app and runs the function passed as second parameter to `navigate.camera.getPicture()` (the error handler). Here is how I call `navigate.camera.getPicture()`: ``` navigator.camera.getPicture( function( uri ) { // code to handle success }, function( msg ) { // code to handle error }, { quality: 100, destinationType: Camera.DestinationType.FILE_URI, encodingType: Camera.EncodingType.PNG, targetWidth: 2000, targetHeight: 2000, correctOrientation: true, saveToPhotoAlbum: false } ); ``` I have tried to comment out all the configuration parameters except destinationType to see if that helped. My config.xml has these lines to allow for camera: ``` <plugin name="Camera" value="org.apache.cordova.CameraLauncher" /> <feature name="http://api.phonegap.com/1.0/camera" /> ``` My debug environment is a Galaxy Nexus running Android 4.2.1. I have also run the app under Ripple which worked exacly as expected. The app is built with PhoneGap Build, not Android SDK on my machine, if that makes a difference. Is there anything I'm missing here? Thanks in advance =)