How to capture secreen in android when application is runing in background?
<p>I was using this code to capture screen but it captures only activity not the screen when application runs in background. </p>

<pre><code>Bitmap bitmap;
View v1 = MyView.getRootView();
v1.setDrawingCacheEnabled(true);
bitmap = Bitmap.createBitmap(v1.getDrawingCache());
v1.setDrawingCacheEnabled(false);
</code></pre>

<p>can any one proposed the capture screen code which can capture what ever is in screen.</p>
