Join the social network of Tech Nerds, increase skill rank, get work, manage projects...

 1 Answer(s)

  • Hi,
    You can solve it using Camera Picture Background plugin. This plugin allows you to capture image without any user interface. Install following plugin in your PhoneGap project :
    cordova plugin add

    Now you have to add following code in your desired function :
    var options = {
        name: "Image", //image suffix
        dirName: "myImages", //foldername
        orientation: "landscape", //or portrait
        type: "front" //or back
    window.plugins.CameraPictureBackground.takePicture(success, error, options);
    function success(imgurl) {
        console.log("Imgurl = " + imgurl);

    You will find this image under myImages folder in your device storage and you can display this image on your desired page.
    Hope this will help you :)
Sign In

Sign up using

Forgot Password
Fill out the form below and instructions to reset your password will be emailed to you:
Reset Password
Fill out the form below and reset your password: