[android-developers] Re: How to do we take a Screenshot using ADB Comand Line
Here's a program that can be used to take screenshot from command line: http://www.roman10.net/a-program-for-taking-screenshot-for-android-device-from-command-line/ On Thursday, 27 August 2009 20:48:20 UTC+8, prakashvel p 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
[android-developers] Re: How to do we take a Screenshot using ADB Comand Line
You can use http://developer.android.com/tools/help/monkeyrunner_concepts.html -- Lew On Thursday, August 27, 2009 5:48:20 AM UTC-7, prakashvel p 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
[android-developers] Re: How to do we take a Screenshot using ADB Comand Line
How Could we use the following file for capturing the screenshot. mydroid/development/tools/screenshot/src/com/android/screenshot/ screenshot.java In that JAVA File they have mentioned, Usage: screenshot2 [-d | -e | -s SERIAL] [-l] OUT_FILE How do we use this from the adb Command line. -It was not showing under the /data/data/com.__ If anybody has used that through command line.Please share your experience Thanks and Regards Prakash Vel On Aug 28, 11:46 am, Prakash Vel prakash...@gmail.com wrote: Thanks for the Reply on how to go about trying on Command Line using the DDMS.Would dig into the framebufer_service.c for more clarity. Thanks to others too for their input on it Regards Prakash Vel On Aug 27, 10:21 pm, Yusuf Saib (T-Mobile USA) yusuf.s...@t- Mobile.com wrote: DDMS sends a string that essentially says give me ascreenshot 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 theScreenshot. However i am trying tocapturethe Emulator screenfrom 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 -~--~~~~--~~--~--~---
[android-developers] Re: How to do we take a Screenshot using ADB Comand Line
Thanks for the Reply on how to go about trying on Command Line using the DDMS.Would dig into the framebufer_service.c for more clarity. Thanks to others too for their input on it Regards Prakash Vel On Aug 27, 10:21 pm, Yusuf Saib (T-Mobile USA) yusuf.s...@t- Mobile.com wrote: DDMS sends a string that essentially says give me ascreenshot 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 theScreenshot. 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 -~--~~~~--~~--~--~---
[android-developers] Re: How to do we take a Screenshot using ADB Comand Line
On Aug 27, 1:21 pm, Yusuf Saib (T-Mobile USA) yusuf.s...@t- Mobile.com wrote: 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. Brings up an interesting question: can the phone DDMS itself via connecting to the appropriate socket for the DDMS service, or does that only work when you come in from the outside via USB with USB debugging enabled? --~--~-~--~~~---~--~~ 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 -~--~~~~--~~--~--~---
[android-developers] Re: How to do we take a Screenshot using ADB Comand Line
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 -~--~~~~--~~--~--~---
[android-developers] Re: How to do we take a Screenshot using ADB Comand Line
USB, I think. Yes, only work in enable USB debugging enabled. I tried to connect my HTC magic before I enabled usb debug. It did not show the device. On Fri, Aug 28, 2009 at 3:40 AM, Chris Stratton cs07...@gmail.com wrote: On Aug 27, 1:21 pm, Yusuf Saib (T-Mobile USA) yusuf.s...@t- Mobile.com wrote: 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. Brings up an interesting question: can the phone DDMS itself via connecting to the appropriate socket for the DDMS service, or does that only work when you come in from the outside via USB with USB debugging enabled? -- Regards, Michael Leung http://www.itblogs.info http://www.michaelleung.info --~--~-~--~~~---~--~~ 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 -~--~~~~--~~--~--~---
[android-developers] Re: How to do we take a Screenshot using ADB Comand Line
I think DDMS for USB and enabled useb debug. But I have not tried to connect my phone by others way. On Fri, Aug 28, 2009 at 11:20 AM, Chi Kit Leung michaelchi...@gmail.comwrote: USB, I think. Yes, only work in enable USB debugging enabled. I tried to connect my HTC magic before I enabled usb debug. It did not show the device. On Fri, Aug 28, 2009 at 3:40 AM, Chris Stratton cs07...@gmail.comwrote: On Aug 27, 1:21 pm, Yusuf Saib (T-Mobile USA) yusuf.s...@t- Mobile.com wrote: 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. Brings up an interesting question: can the phone DDMS itself via connecting to the appropriate socket for the DDMS service, or does that only work when you come in from the outside via USB with USB debugging enabled? -- Regards, Michael Leung http://www.itblogs.info http://www.michaelleung.info -- Regards, Michael Leung http://www.itblogs.info http://www.michaelleung.info --~--~-~--~~~---~--~~ 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 -~--~~~~--~~--~--~---
[android-developers] Re: How to do we take a Screenshot using ADB Comand Line
If you want to get the screenshot of emulator or device ( screen ) while running the emulator open the ddms located in tools directory of android sdk and choose device - screen capture you can do it for real device by connect it to the pc through usb cable and do the same I think this will help you. Thank you. Dilli Rao On Thu, Aug 27, 2009 at 6:18 PM, 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 -~--~~~~--~~--~--~---