DDMS sends a string that essentially says "give me a screenshot" to the device, which sends back image data, all through a socket. You could in theory take the DDMS code and repurpose it to your needs. You might start by taking a look at system/core/adb/framebuffer_service.c and who calls it. Bear in mind that you can't screencapture on the device unless you're running as root. DDMS gets around this by sending the string to a root process.
Yusuf Saib Android ·T· · ·Mobile· stick together The views, opinions and statements in this email are those of the author solely in their individual capacity, and do not necessarily represent those of T-Mobile USA, Inc. On Aug 27, 5:48 am, Prakash Vel <prakash...@gmail.com> wrote: > Read through Couple of articles , Most of them point to the DDMS > through that we could take the Screenshot. > > However i am trying to capture the Emulator screen from the Command > Line. > Not Sure how to tweak the framebuffer /Surface flinger to do the job. > > or is there any app that we could run in the background and get the > job done. > > help will be much appreciated. > > Thanks and Regards > Prakash Vel --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~----------~----~----~----~------~----~------~--~---