Error 'Camera Cancelled' - App Sencha with PhoneGap

放肆的年华 提交于 2019-12-01 20:55:28

Same error here. I'm using cordova v2.6 for Android.

To solve it I had to edit the AndroidManifest.xml and change the DroidGap activity launch mode from "singleInstance" to "standard".

I almost got crazy with this.

You must to be pretty sure what options* are you using and passing to $cordovaCamera.getPicture(options*). For example, you'll get failure if you are using saveToPhotoAlbum (true or false), you will get always "camera cancelled" because Android doesnt have this option. Don't use this on your config on android.

Hope it helps!

Which version of phonegap are you using? I tried using 2.7.0 here and it works without problems.

add this line to the AndroidManifest

<uses-feature android:name="android.hardware.camera.PictureCallback" />
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!