0

I've found a lot of information regarding taking screenshots of an Android Device.

Unfortunately, none of the solutions explain how to get a screenshot of a device over TCP/IP instead of over a USB cable.

Is it possible to take screenshots over TCP/IP? If yes, how can I do that?

Ilmari Karonen
  • 47,645
  • 9
  • 89
  • 149
glarkou
  • 6,693
  • 11
  • 64
  • 118

2 Answers2

2

When the device is connected, use adb tcpip 5555 to have the device listen over TCP, then use adb connect <device-ip> to connect to it and use the DDMS tools as usual.

Josh Lee
  • 161,055
  • 37
  • 262
  • 269
  • I need to take the screenshots programatically using ddmlib. Is it possible to do something similar to your suggestion? I found `http://www.netmite.com/android/mydroid/1.5/system/core/adb/SERVICES.TXT` but it does not say anything about connecting to a device over TCP. – glarkou Mar 05 '12 at 17:19
0

The easiest way to it is to connect to the device via ADB over TCP/IP. Then you can use DDMS as usual to take the screenshot.

Information on ADB over TCP/IP:

How can I connect to Android with ADB over TCP?

Community
  • 1
  • 1
David Given
  • 12,790
  • 7
  • 72
  • 118
  • I need to take the screenshots programatically using ddmlib. Is it possible to do something similar to your suggestion? I found `http://www.netmite.com/android/mydroid/1.5/system/core/adb/SERVICES.TXT` but it does not say anything about connecting to a device over TCP. – glarkou Mar 05 '12 at 17:19