0

Possible Duplicate:
How to programatically take a screenshot on Android?

I want to capture current screen view when application is run .

thanks in advance

Community
  • 1
  • 1

1 Answers1

0
View v1 = view.getRootView();
v1.setDrawingCacheEnabled(true);
Bitmap bm = v1.getDrawingCache();

Here view means your layout View.

Krishnakant Dalal
  • 3,568
  • 7
  • 34
  • 62
  • thanks for reply yes i am asking for layout .i have tried but it gives current xml view but i want android device view from where application will be launch. – Tarun - Systematix May 02 '12 at 11:48