-2

I know this question has been asked many times.I am aware of two ways to do it.(1)Using screenshot library(But I am getting black screen all the time).(2)getting data from frame buffer with rooting||\dev\graphics\fb0||(But it is always 0 byte and I do not know exact location where current screenshot of device is stored).My preferred requirement is getting better frame rate.Any help will be very helpful as I have spent a lot of time in this.

WSS
  • 503
  • 5
  • 20
  • 1
    Please do not ask the same question repeatedly. You can use the edit feature to add more info to your original question – Raghav Sood Feb 27 '13 at 17:03
  • try this http://stackoverflow.com/questions/14521128/taking-device-screenshot-while-application-is-close/14521173#14521173 – Nimish Choudhary Feb 27 '13 at 18:13
  • Nimish I have tried all versions of that library but I m getting black screen with demo application. – WSS Mar 27 '13 at 16:28

2 Answers2

0

You can get the drawing cache of your view using the following code:

    view.setDrawingCacheEnabled(true);
    view.buildDrawingCache();
    Bitmap b1 = view.getDrawingCache();
Karan_Rana
  • 2,813
  • 2
  • 26
  • 35
0

You can use this:

$ adb shell screencap -p /mnt/sdcard/sc.png
$ adb pull /mnt/sdcard/sc.png
Diego Torres Milano
  • 65,697
  • 9
  • 111
  • 134