Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Android app still restarts #5

Closed
dgutie02 opened this issue Jun 4, 2014 · 1 comment
Closed

Android app still restarts #5

dgutie02 opened this issue Jun 4, 2014 · 1 comment

Comments

@dgutie02
Copy link

dgutie02 commented Jun 4, 2014

Hello,

I'd like to confirm how this plugin should be used. My understanding is that if I simply include the plugin in my project (which I am doing so through phonegap build), than this plugin will solve the problem of my Application being restarted by Android when the Camera comes into the foreground.

Is there some additional configuration or code I need to be using in order for this plugin to work?

Thanks,
David

@grassick
Copy link
Member

grassick commented Jun 4, 2014

Hello,

I just include the plugin in the project (and don't forget to exclude the official Phonegap plugin for the camera!) and then call it as normal. Everything should work just fine.

In my code:

navigator.camera.getPicture(success, error, 
   { quality: 50, destinationType: Camera.DestinationType.FILE_URI});

To install from the command line:

cordova plugin add https://github.com/mWater/cordova-plugin-camera-foreground.git

@grassick grassick closed this as completed Jun 4, 2014
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants