I want to take the screen shot of the device. But my coding is take on only my application screen only..I need to take screenshot view screen of the device..and tell how to run on service. time interval should be 500ms for taking screen shot.
Here is screen shot code:
Bitmap bitmap;
View v1 = MyView.getRootView();
v1.setDrawingCacheEnabled(true);
bitmap = Bitmap.createBitmap(v1.getDrawingCache());
v1.setDrawingCacheEnabled(false);