There is a tutorial on that at my site http://www.appaholics.in/lets-take-a-screenshot/.
Thanks On Wed, Aug 17, 2011 at 6:08 PM, Carl Lee <[email protected]> wrote: > > http://android.git.kernel.org/?p=platform/system/core.git;a=tree;f=adb;h=9478be080872bd70b379c8d2b6beb78a535f3b2d;hb=HEAD > > I was reading these source code from android git, because I want to > use a feature of Android Debug Bridge - screenshot. > Most screenshot apps on market needs Root permission, which I don't > like very much. > > http://code.google.com/p/android-screenshot-library/ > After some googlings and researches, I found this small library that > allows me to take screenshot without root permission. > But at last I found out it needs user to install Android SDK, and > install a native program onto device using adb tool from a computer. > This is what I wanted, neither. > So after reading this library's code I found out what it does is > really simple, read from "/dev/graphics/fb0" and decode it. > The key of this library is to have the "shell" user permission. > > After reading some of the code and docs on Android Debug Bridge's git, > I found it is possible to communicate with the adbd (which runs on the > device when "Application->Development->USB debug" is selected) through > a socket interface. > I tried it on a emulator and it works!! > Unfortunately, most devices don't have that socket open. Instead, most > devices listens on USB device instead of socket. > Since I am some kind of a "C" noob, I am wondering if I am still able > to communicate with the adbd daemon from a process that only has > normal Android application permission and take a screenshot through > that interface? > > -- > 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 -- -------------------- Raghav Sood CEO/Founder/Owner/Dictator/Tyrant at Appaholics (Basically all titles required to have complete control) http://www.raghavsood.com/ https://market.android.com/developer?pub=Appaholics http://www.appaholics.in/ -- 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

