Search code examples
androidapachecordovawinjs

How does camera.getPicture works in android using apache cordova?


Using apache cordova plugin, I am able to open the camera function but when I take picture, application gets restarting..

navigator.camera.getPicture( cameraSuccess, cameraError, cameraOptions );

Solution

  • Finally I resolved it...

    we need to add below two lines in config.xml.

    <preference name="KeepRunning" value="true" />
      <preference name="exit-on-suspend" value="false" />