Possible Duplicate:
How to programatically take a screenshot on Android?
I want to capture current screen view when application is run .
thanks in advance
Possible Duplicate:
How to programatically take a screenshot on Android?
I want to capture current screen view when application is run .
thanks in advance
View v1 = view.getRootView();
v1.setDrawingCacheEnabled(true);
Bitmap bm = v1.getDrawingCache();
Here view means your layout View.