Just use: *$ adb shell screencap -p /mnt/sdcard/sc.png* *$ adb pull /mnt/sdcard/sc.png*
and you'll get the screenshot as PNG. On Friday, 16 November 2012 11:20:14 UTC-5, bob wrote: > > I'm pretty sure this doesn't work for the Google Nexus 7. > > > Even with the Android screen practically all black, I loaded > the screenshot data into IrfanView, and it looked like a bunch of > random-ish junk all over. > > > > On Thursday, November 15, 2012 8:56:09 PM UTC-6, lbendlin wrote: >> >> The framebuffer has two screens worth of data, stacked vertically. You >> can use Irfanview to look at the data and find the actual dimensions. >> >> On Thursday, November 15, 2012 4:14:12 PM UTC-5, bob wrote: >>> >>> I'm trying to figure out how to read screen data on Android: >>> >>> So, I did this on Google Nexus: >>> >>> cat /dev/graphics/fb0 > hmm >>> >>> Then, I looked at the file hmm: >>> >>> -rw-rw-rw- root root 9437184 2012-11-15 15:05 hmm >>> >>> I was hoping the size would be something like 1280*800*4, or 4,096,000. >>> >>> But, it's 9,437,184. >>> >>> Groan. >>> >>> Any idea what format this could be in? >>> >>> Thanks. >>> >>> -- You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/android-developers?hl=en

