Compiling to device

Monkey Targets Forums/Android/Compiling to device

Tibit(Posted 2013) [#1]
For some reason I'm no longer able to just compile & run on my device.

I'm using a Nexus 10 to test on.

Right now I go to the android/bin, grab the apk and mail it to myself and from the mail program my nexus I download the attachment and install.

Can something have happened to my USB drivers? Which ones should I use for nexus 10 or nexus 7?


Raph(Posted 2013) [#2]
I test on a Nexus 7. When this happened to me, it was because I had changed the USB connection mode from "camera" to "media device." It's under settings somewhere.

You can use the drivers that come with the Android SDK.


Raph(Posted 2013) [#3]
Sorry, to be clear: you need to be on "camera" or it doesn't work.


Zurrr(Posted 2013) [#4]
Here my story..
I use samsung phone and install driver. Everything work. Then later I bought new samsung S2. When I connect to PC, I can do everything using the same driver, so I guest all done. But later when I run Monkey not working. Take me about an hour to figure it out. I re-install using S2 supply driver, everything work again. I guest driver for 2 different model (but the same company) not fully compatible.

I hope this could help someone.


Tibit(Posted 2013) [#5]
Ah it should be camera, I thought it should be media device - oki gonna try that!

Yeah, problem with Nexus 10 is that there is no drivers for it. It really surprises me since they have sold quite a bit of em! On samsung's driver page they only have a pdf...


Tibit(Posted 2013) [#6]
Unfortunately not working with camera either.

Anyone got a Nexus 7 or 10 and got drivers that are working with direct compile?


ElectricBoogaloo(Posted 2013) [#7]
Nope.
It didn't work the first time I clicked "Compile", so I just switched to the drag'n'drop method.
Open your Nexus in explorer, (turn your Nexus on, and unlock it!) go to the Download directory, and drag'n'drop your monkeygame-debug.apk into there, then run the Download app on the device, and click the apk to install it.
No need for an upload/download approach, as, no matter how many times you overwrite that apk, it still sits in the same place in the download app.

I gave up trying to do the proper method. This way works. It'll do!


Raph(Posted 2013) [#8]
What worked for me is the driver provided in the android-sdk. Which makes sense, it's a Google reference device after all.

C:\android-sdk-windows\extras\google\usb_driver


Raph(Posted 2013) [#9]
PS, Nexus is made by ASUS, not Samsung. So you may have been looking on the wrong company's page. :)


ElectricBoogaloo(Posted 2013) [#10]
Nexus 10 is Asus, 7 is Samsung and 4 is LG.

.. I think..


Raph(Posted 2013) [#11]
All the Nexus 7 stuff I have is Asus branded.


ElectricBoogaloo(Posted 2013) [#12]
Sorry, got those first two the wrong way round..
7s Asus, 10s Samsung, 4s LG!!
.. This shows exactly how much usage I get out of my Nexus 7!!