Installing, Running, and Navigating through apps
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
adb install path/to/app.apk
in the command line on a computer.
3. launching apps is done in command line by running
, then typing
am start package.name/.Activity name
. For example, opening settings is done with
am start com.android.settings/.Settings
once in adb shell. Netflix is
am start com.netflix.mediaclient/.UIWebViewActivity
, and Angry Birds is
am start com.rovio.angrybirds/com.rovio.ka3d.App
. 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/)
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)
I realize this isn't very complete, but I'll add some stuff to it as I play more.