I've gotten a few questions about how to run apps on the Nexus Q, so I figured I'd make some sort of post giving instructions, at least basic ones.
1. Enable USB debugging on the Q. This is done by running the nexus Q app on another device, pairing with the Q, and then going to advanced and enabling USB debugging.
2. Installing apps is done by running
in the command line on a computer.
3. launching apps is done in command line by running
, then typing
. For example, opening settings is done with
once in adb shell. Netflix is
, and Angry Birds is
. The package/activity names can be determined by running the app on another android device, plugging it into a computer, and running the monitor tool in terminal and looking at the hierarchy viewer.
4. XY coordinates for touch/drag events can be given to the device by using the monkeyrunner tool (documentation can be found on the android developers website). For a brief overview:
start monkeyrunner (located in android-sdk/tools/)
I realize this isn't very complete, but I'll add some stuff to it as I play more.
1. Enable USB debugging on the Q. This is done by running the nexus Q app on another device, pairing with the Q, and then going to advanced and enabling USB debugging.
2. Installing apps is done by running
Code:
adb install path/to/app.apk
3. launching apps is done in command line by running
Code:
adb shell
Code:
am start package.name/.Activity name
Code:
am start com.android.settings/.Settings
Code:
am start com.netflix.mediaclient/.UIWebViewActivity
Code:
am start com.rovio.angrybirds/com.rovio.ka3d.App
4. XY coordinates for touch/drag events can be given to the device by using the monkeyrunner tool (documentation can be found on the android developers website). For a brief overview:
start monkeyrunner (located in android-sdk/tools/)
Code:
from com.android.monkeyrunner import MonkeyRunner, MonkeyDevice
device = MonkeyRunner.waitForConnection()
device.touch(x, y, MonkeyDevice.DOWN_AND_UP)
device.drag((startX,startY), (endX, endY), 1, 10)
device.press('KEYCODE_BACK', MonkeyDevice.DOWN_AND_UP)
I realize this isn't very complete, but I'll add some stuff to it as I play more.