Error 'Camera Cancelled' - App Sencha with PhoneGap

前端 未结 4 1363
醉酒成梦
醉酒成梦 2021-01-21 06:51

I\'m developping an app that you take pictures with phone and send to social networks. My App is developped with sencha touch 2 and Phonegap. When i try take a picture my app re

相关标签:
4条回答
  • 2021-01-21 07:38

    add this line to the AndroidManifest

    <uses-feature android:name="android.hardware.camera.PictureCallback" />
    
    0 讨论(0)
  • 2021-01-21 07:47

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

    0 讨论(0)
  • 2021-01-21 07:51

    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!

    0 讨论(0)
  • 2021-01-21 07:53

    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".

    0 讨论(0)
提交回复
热议问题