title: Capture Android Screen Cordova PhoneGap
body: <p>I was trying to implement this feature in Apache Cordova PhoneGap, but it doesn't work for me</p>
  
  <p><a href="https://stackoverflow.com/questions/2661536/how-to-programatically-take-a-screenshot-on-android">How to programmatically take a screenshot in Android?</a></p>
  
  <p><a href="https://stackoverflow.com/questions/9745988/how-can-i-programmatically-take-a-screenshot-of-a-webview-capturing-the-full-pa">How can I programmatically take a screenshot of a webview, capturing the full page?</a></p>
  
  <p>When I call to </p>
  
  <pre><code> WebView browserView = (WebView) findViewById(R.id.content);
  </code></pre>
  
  <p>I am actually getting a reference to the following object</p>
  
  <pre><code> LinearLayoutSoftKeyboardDetect
  </code></pre>
  
  <p>and not to the WebView.</p>
  
  <p>Any idea on how to fix it?</p>