title: Capture Screen shot on Android using Java code
body: <blockquote>
    <p><strong>Possible Duplicate:</strong><br>
    <a href="https://stackoverflow.com/questions/2661536/screenshot-android">Screenshot Android</a>  </p>
  </blockquote>
  
  
  
  <p>I would like to capture screenshots programatically (not the screen shot of my view) and have created an application to take the screen shot of my view. </p>
  
  <p>I am trying to capture the device screen shot (like if user opned any image file) by using Java code(I thought of creating service and from service we can take picture but I am not sure how to achieve this). </p>
  
  <p>I found some native code using frame buffer fb0 but I am very knew to this and no idea how to use it.</p>