Attend XDA's Second Annual Developer Conference, XDA:DevCon 2014!
5,781,459 Members 37,980 Now Online
XDA Developers Android and Mobile Development Forum

Installing, Running, and Navigating through apps

Tip us?
 
shodutta92
Old
#1  
Junior Member - OP
Thanks Meter 13
Posts: 9
Join Date: Jun 2012
Default 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
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: [ Click to Expand ]
 
FadedLite
Old
#2  
FadedLite's Avatar
Senior Member
Thanks Meter 234
Posts: 165
Join Date: Jul 2010
Location: California

 
DONATE TO ME
Thank you for posting this, this clears up a couple of my questions
HTC One (M8)
ChromeCast
HP Touchpad
Nexus Q
LG G2 (D801)
Samsung Galaxy Nexus CDMA/LTE
Nexus 7 Developer EditionStolen
Droid Incredible Retired
SoCal Devs Developer
http://socaldevs.com
 
Daneshm90
Old
#3  
Daneshm90's Avatar
Recognized Developer
Thanks Meter 636
Posts: 3,309
Join Date: Jun 2009
This might be handy : link
Scripts : Recovery Customizer Link Apk Manager Link Auto Deodexer Link Backup Manager Link Update.zip Modifier/Creator Link
 
Some_dude36
Old
#4  
Some_dude36's Avatar
Senior Member
Thanks Meter 78
Posts: 520
Join Date: Mar 2012
Location: hollow earth

 
DONATE TO ME
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.
 
shodutta92
Old
#5  
Junior Member - OP
Thanks Meter 13
Posts: 9
Join Date: 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.
 
Zarboz
Old
#6  
Zarboz's Avatar
Known Scammer
Thanks Meter 9,256
Posts: 0
Join Date: Mar 2009
Location: Denver

 
DONATE TO ME
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
 
Building a better droid is the purpose of today Android History
G1->mytouch 3g -> Mytouch slide -> Mytouch 4g -> HD2 magldr -> Thunderbolt -> Evo 3D -> Sensation -> Evo 4g -> Evo 3D -> HTC vivid -> One X -> One S -> ( Evo LTE (thanks xda) -> Droid DNA
I stay HTC.
Checkout my new project at EasyDevStudio
[showp1984] Times of day and sleep are something for weak people - I am a cybernetic organism, and have a sleep mode.
ლ(ಠ益ಠლ)
Come hangout
irc.freenode.net
#teamblackout
I BUY BRICKED PHONES!

 
THE_KINGDOM
Old
#7  
THE_KINGDOM's Avatar
Senior Member
Thanks Meter 102
Posts: 845
Join Date: Sep 2011
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
PHONE: Nexus 5 | White | 32GB
OTHER MEDIA DEVICE: Nexus Q - CM
KERNEL: ---
 
mrjaymillz
Old
#8  
Junior Member
Thanks Meter 0
Posts: 16
Join Date: May 2012
Quote:
Originally Posted by UKROB86 View Post
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.
 
zulu99
Old
(Last edited by zulu99; 31st July 2012 at 11:06 PM.)
#9  
Senior Member
Thanks Meter 331
Posts: 1,018
Join Date: 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
 
THE_KINGDOM
Old
(Last edited by THE_KINGDOM; 18th September 2012 at 01:40 PM.)
#10  
THE_KINGDOM's Avatar
Senior Member
Thanks Meter 102
Posts: 845
Join Date: Sep 2011
...
PHONE: Nexus 5 | White | 32GB
OTHER MEDIA DEVICE: Nexus Q - CM
KERNEL: ---

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes


Integrate Social Networks Into Your Project With ASNE Library

Social network applications and services have developed into major parts ofour … more

Give Your Android Wear Device a Lock Screen with Lockable

Without a doubt,Android Wear is one of the most frequently talked abouttopics of … more

Forums Added for the LG G Watch R and Samsung Gear S

A little over a week ago, LG “inadvertently” let the world know about the … more

Secrecy App Goes Open Source, New LG Android Wear Device! – XDA Developer TV

Secrecy encryption app goes open source! That and much … more