title: how can I take screenshot dynamically on android
body: <p>I am developing an android application on eclipse. I want to take screenshot of Emulator programmatically, as a jpg file to convert it to pdf when user clicks a button.</p>
  
  <p>How can I take, and how can I access this saved file.</p>
  
  <p>Thanks</p>
  
  <hr>
  
  <p>I've tried this <a href="https://stackoverflow.com/a/5651242/1553955">answer</a>, but I've "ACCUWX cannot be resolved to a variable" problem on this line: </p>
  
  <pre><code>String mPath = Environment.getExternalStorageDirectory().toString() + "/" + ACCUWX.IMAGE_APPEND;
  </code></pre>