Control the Q With Your Computer

There are several apps that connect to your computer to let you browse, backup, up/download files, etc. These ones have been found to work:

  • AirDroid

These ones don’t seem to work:

  • Samsung Kies

Send touch or keyboard events from your computer:

You may need to simulate keyboard key presses or touch events, e.g. if you don’t have a USB keyboard/mouse.

  1. Install the Android SDK. If you have used adb in a previous step you probably already have it installed.
  2. Plug the Q into your computer.
  3. Open a terminal window and navigate to <android-sdk-folder>/tools. You will find a file named monkeyrunner.bat.
  4. Run it by typing “monkeyrunner.bat”
  5. At the prompt “»>”, type “from import MonkeyRunner, MonkeyDevice”
  6. “device = MonkeyRunner.waitForConnection()”. If at this point the “»>” doesn’t come back after a few seconds, you are not connected to the Q.
  7. When “»>” does come back, you may use any of the monkeyrunner commands. More details can be found in several tutorials online, but basically:
    • To simulate a touch event at coordinates x and y: “device.touch(x, y, MonkeyDevice.DOWN_AND_UP)”
    • To simulate a drag event: “device.drag((startX,startY), (endX, endY), 1, 10)”
    • To simulate a key press (in this case, of the “back” key): “‘KEYCODE_BACK’, MonkeyDevice.DOWN_AND_UP)”. All the keycodes are listed here.
    • More information about using monkeyrunner is here.
Unless otherwise stated, the content of this page is licensed under Creative Commons Attribution-ShareAlike 3.0 License