Nvidia and Robotics w/ Barrett Williams – XDA:DevCon 2014

Robotics continues to dominate our videos from this years XDA:DevCon 2014 in … more

Speed Up Deodexing with JoelDroid Batch Deodexer

Android 5.0 Lollipop brings many under-the-hood changes like changing the default compiler … more

Top 5 Apps for 2014 + Top Xposed Mod of 2014 – XDA TV

Its that time of year where you look back and remember the things that happened … more

NVIDIA SHIELD Tablet Gets Android 5.0.1, OTA Available

The NVIDIA SHIELD Tablet is the latest Android-powered device released by famed GPU … more

Welcome to XDA

Search to go directly to your device's forum

Register an account

Unlock full posting privileges

Ask a question

No registration required
Post Reply

Installing, Running, and Navigating through apps

OP shodutta92

3rd July 2012, 11:00 PM   |  #1  
OP Junior Member
Thanks Meter: 13
 
9 posts
Join Date:Joined: Jun 2012
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
Code:
adb install path/to/app.apk
in the command line on a computer.

3. launching apps is done in command line by running
Code:
adb shell
, then typing
Code:
am start package.name/.Activity name
. For example, opening settings is done with
Code:
am start com.android.settings/.Settings
once in adb shell. Netflix is
Code:
am start com.netflix.mediaclient/.UIWebViewActivity
, and Angry Birds is
Code:
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/)
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.
The Following 13 Users Say Thank You to shodutta92 For This Useful Post: [ View ]
4th July 2012, 12:58 AM   |  #2  
FadedLite's Avatar
Senior Member
Flag California
Thanks Meter: 236
 
165 posts
Join Date:Joined: Jul 2010
Donate to Me
More
Thank you for posting this, this clears up a couple of my questions
6th July 2012, 04:22 AM   |  #3  
Daneshm90's Avatar
Recognized Developer
Thanks Meter: 637
 
3,309 posts
Join Date:Joined: Jun 2009
This might be handy : link
9th July 2012, 03:54 AM   |  #4  
Some_dude36's Avatar
Senior Member
Flag hollow earth
Thanks Meter: 88
 
587 posts
Join Date:Joined: Mar 2012
Donate to Me
More
So theres no UI for the apps? You have to memories each apps command string?

That sucks. lol Is there any chance of a UI in development or a launcher for the apps?

That seems excessively complicated to run for example angry birds with quite an extensive com string.
9th July 2012, 10:18 AM   |  #5  
OP Junior Member
Thanks Meter: 13
 
9 posts
Join Date:Joined: Jun 2012
Agreed, it does really suck to have to use console commands.

Well...lets just say I'm working on something. It may take a few days before I know whether it'll actually work, but I'll let you know.
20th July 2012, 11:12 PM   |  #6  
Zarboz's Avatar
Known Scammer
Flag Denver
Thanks Meter: 9,264
 
3 posts
Join Date:Joined: Mar 2009
Donate to Me
More
Why not install the VNC application for droid

in order to run the VNC server on your nexus Q and then use your tablet or other touch enabled android/computer/device to control the Q interface

http://code.google.com/p/android-vnc-server/

https://play.google.com/store/apps/d...aips.vnc&hl=en

https://play.google.com/store/apps/d...h1bWkudm5jcyJd

this is just an idea considering you have root the app shouldnt be hard to set a call to on some kind of init.d script path

i think it would serve well for navigation
21st July 2012, 07:52 PM   |  #7  
THE_KINGDOM's Avatar
Senior Member
Thanks Meter: 125
 
980 posts
Join Date:Joined: Sep 2011
More
it's basically identical internals to the galaxy nexus, with some extra hardware outputs, so you can port over a custom rom for galaxy nexus and use that as the UI for now
21st July 2012, 10:39 PM   |  #8  
Junior Member
Thanks Meter: 0
 
16 posts
Join Date:Joined: May 2012
Quote:
Originally Posted by UKROB86

it's basically identical internals to the galaxy nexus, with some extra hardware outputs, so you can port over a custom rom for galaxy nexus and use that as the UI for now

What your saying does make sense, so I'm willing to give it a try this weekend. I will port over the same ROM I have on my VZW Galaxy Nexus (Stock Jellybean 4.1 from Rootz Wiki). In order to do so I will need just a little bit of help... My Q is already rooted, so you can just provide me with a walk thru outlining how to push/port the ROM over. Do I have to hook it to the pc again and start the bootloader with adb or what exactly? Thanks for the help in advance.
1st August 2012, 12:03 AM   |  #9  
Senior Member
Thanks Meter: 346
 
1,041 posts
Join Date:Joined: Jan 2009
Donate to Me
You can install droidmote server on nexus q and control it with your android phone.
with droidmote server you simulate a mouse a keyboard a multitouch touchpad etc. etc.
you can play, in remote,also with games that support only the touch screen
Last edited by zulu99; 1st August 2012 at 12:06 AM.
16th September 2012, 08:26 PM   |  #10  
THE_KINGDOM's Avatar
Senior Member
Thanks Meter: 125
 
980 posts
Join Date:Joined: Sep 2011
More
...
Last edited by THE_KINGDOM; 18th September 2012 at 02:40 PM.

Post Reply Subscribe to Thread
Previous Thread Next Thread
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes