How to run Android app generated from Unity?

How do I run a Unity generated game for Android on an Android phone? I’ve used Unity 3 with the Android plugin to compile my game for Android. I’ve connected my Android phone to my Mac and I can copy the Android .apk file to my Android phone.

Is there a certain directory on the Android phone that I should copy the .apk file to so that it will show up on my Android phone and I can run the .apk file from my Android phone?

OK I got it working:

  1. On the Nexus One enable USB Debugging in Settings->Applications->Development

  2. On the Mac to install the app on the Nexus One, run in a terminal window:

adb install <Unity_game_name>.apk

Use the full path to the file “<Unity_game_name>.apk”

Hello
You’ll probably find more help in a topic with the name != “iPhone Development” :wink:

@ciaravoh:

True, unfortunately there isn’t an Android forum at the moment. Do you have any suggestions of where to post Android questions?

Support in this case as it should be documented if not, I would file a documentation bug report.

for coding stuff Scripting would be the place as it covers all platforms, not a specific one

I think that

adb -d install <yourapp.apk>

is better since this should always work. :wink:

how do you all get on the beta list of the android version.
I am very much interested to convert my app to android too :slight_smile:

buy unity android pro I would guess

You do not need ADB commands to install it, just copy the apk file to your SD Card, download Astro manager, select the file and install.

I have successfully installed the Android SDK. I downloaded the Roll-a-Ball example and build successfully, however my HTC Magic can’t install the application.

Is Android 1.5 not support?

No, you need a 2.0 device.

Oh…I need to wait the Nexus One arrive…

the Roll-a-ball.apk is 5.77MB, is it a bit big or because Unity 3 is sill beta?

All tests I made where over 6MB, but I always chose armV7 for OpenGL ES 2.
At least everything is movable to SD Card on Froyo.