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
  • 49,047
  • 9
  • 93
  • 153
glarkou
  • 7,023
  • 12
  • 68
  • 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
  • 171,072
  • 38
  • 269
  • 275
  • 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
  • 13,277
  • 9
  • 76
  • 123
  • 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