You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cordova.apache.org by GitBox <gi...@apache.org> on 2019/01/28 14:47:04 UTC
[GitHub] Owlbertz opened a new issue #416: Cannot take pictures on Android
Owlbertz opened a new issue #416: Cannot take pictures on Android
URL: https://github.com/apache/cordova-plugin-camera/issues/416
Hi,
I am using the camera plugin to take pictures and to select photos from the gallery. While the latter works perfectly fine, the former action fails with this error:
`length=1; index=1`
I was able to find out the source, but not the cause:
```
"F09 Camera1798421768 sjava.lang.ArrayIndexOutOfBoundsException: length=1; index=1
at org.apache.cordova.camera.CordovaUri.getFileNameFromUri(CordovaUri.java:98)
at org.apache.cordova.camera.CordovaUri.<init>(CordovaUri.java:52)
at org.apache.cordova.camera.CameraLauncher.takePicture(CameraLauncher.java:330)
at org.apache.cordova.camera.CameraLauncher.callTakePicture(CameraLauncher.java:308)
at org.apache.cordova.camera.CameraLauncher.execute(CameraLauncher.java:184)
at org.apache.cordova.CordovaPlugin.execute(CordovaPlugin.java:98)
at org.apache.cordova.PluginManager.exec(PluginManager.java:132)
at org.apache.cordova.CordovaBridge.jsExec(CordovaBridge.java:59)
at org.apache.cordova.engine.SystemExposedJsApi.exec(SystemExposedJsApi.java:41)
at android.os.MessageQueue.nativePollOnce(Native Method)
at android.os.MessageQueue.next(MessageQueue.java:323)
at android.os.Looper.loop(Looper.java:136)
at android.os.HandlerThread.run(HandlerThread.java:61)
```
Arguments provided were to the Java-file were:
0: 70
1: 1
2: 1
3: 1024
4: -1
5: 0
6: 0
7: false
8: true
9: false
10: null
11: 0
I hope someone has an idea what I am doing wrong.
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
With regards,
Apache Git Services
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@cordova.apache.org
For additional commands, e-mail: commits-help@cordova.apache.org