How to set up android screencast
What is android screencast?
Android screencast is a Java application that uses ADB to pull screenshots and send keyboard and pointer events to an android device. It also allows you to record a video of your session. This means you can interact with an android device remotely from a PC, and relive those precious android-using moments.
== Steps to take ==
Set up ADB, either over USB or over Ethernet. If a device is visible to 'adb devices', it's visible to android screencast. If you're using ethernet, make sure $ADBHOST is set when you issue the 'adb connect' command, or the input event injector won't work.
Either download/run it directly or, if you are offline or behind a proxy and using OpenJDK, you can download the jnlp and jars locally and edit the jnlp file to point to the local jars.
- To download and run locally:
- Remove the codebase attribute from the jnlp element in androidscreencast.jnlp.
- That's it!
Connections over ethernet require you to set ADBHOST=<ip address of board> in the environment when you run adb connect. If you don't do this, the input event injector fails with the following error:
30:58 E/adb-forward: Device rejected command: unknown host service java.io.IOException: Device rejected command: unknown host service at com.android.ddmlib.AdbHelper.createForward(AdbHelper.java:513) at com.android.ddmlib.Device.createForward(Device.java:302) at net.srcz.android.screencast.api.injector.Injector.init(Injector.java:157) at net.srcz.android.screencast.api.injector.Injector.access$0(Injector.java:155) at net.srcz.android.screencast.api.injector.Injector$1.run(Injector.java:26)
Platform/Android/AndroidScreencast (last modified 2013-08-27 13:24:34)