vlads63 opened a new issue #607: URL: https://github.com/apache/cordova-plugin-camera/issues/607
# Bug Report ## Problem Getting Illegal Argument Exception on Android only when trying to take picture from camera ### What is expected to happen? Camera should be started ### What does actually happen? Illegal ArgumentException is thrown - no other explanation provided ## Information The exception is thrown on Android only. The same code works fine in iOS The code that reads from the library rather than from camera works well. I am also pretty sure that the code used to work fine with older releases of the plugin. ### Command or Code This is the Javascript code I am using: var me = this; var options = { destinationType: Camera.DestinationType.FILE_URI, correctOrientation: true, sourceType: Camera.PictureSourceType.CAMERA }; navigator.camera.getPicture( function (fileURI) { me.uploadImage (fileURI, objectName, objectId, attrName, successCallback, errorCallback); }, function (msg) { alert (msg); errorCallback (); }, options ); The error function is executed with the msg = "Illegal argument exception"; No other information provided. I am not sure what to do with this, ### Environment, Platform, Device Device: GT15907 Android: 5.0.1 ### Version information I am using Monaca build to create the apk file. I refer to the camera plugin like so: <plugin name="cordova-plugin-camera" spec="https://github.com/apache/cordova-plugin-camera"/> ---------------------------------------------------------------- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. For queries about this service, please contact Infrastructure at: us...@infra.apache.org --------------------------------------------------------------------- To unsubscribe, e-mail: issues-unsubscr...@cordova.apache.org For additional commands, e-mail: issues-h...@cordova.apache.org