title: How to take a screenshot in cordova/phonegap application
body: <p>I am trying to take a screenshot in my cordova application using <a href="http://plugreg.com/plugin/gitawego/cordova-screenshot" rel="nofollow">this</a> plugin, but an error is occuring. I don't really know what the error is, as I am testing it on my android smartphone and the app just blocks. In the browser, the same is happening with this error: <code>TypeError: Cannot read property 'save' of undefined</code>, where 'save' comes from this code:</p>
  
  <pre><code>navigator.screenshot.save(function(error,res){
        if(error){
          console.error(error);
        }else{
          console.log('ok',res.filePath);
        }
      });
  </code></pre>
  
  <p>P.S.:  Also tried <code>navigator.plugin.screenshot...</code>, <code>navigator.plugins.screenshot</code>,
          <code>window.screenshot</code>, <code>window.plugin.screenshot</code> and <code>window.plugins.screenshot</code></p>
  
  <p>P.S.2: I checked if plugin is installed with <code>cordova plugins</code> in cordova CLI and everything is ok, plugin           exists in plugins folder and is for cordova version>=3.0.0 and mine is newer</p>
  
  <p>But of course, the browser isn't really loading the plugin, because this error also occurs there: <code>Failed to load resource: the server responded with a status of 404 (Not Found) http://localhost:23273/www/cordova_plugins.json</code>. No screenshot is taken, checked on my smartphone.</p>