Android


How to create a Native Android Plugin for Unity

Building a Unity plugin for Android in Java is pretty straightforward, although if you have never done it, this is what you need to know. Assuming that you have Unity installed on your machine and you have already started a project, download and install the Android SDK with the ADT Bundle, this also contains Eclipse which will be used to create the JAR file. – Set up the project Open up Ecplise and create a new Android Application Project, name it as you wish, make sure to use the same package name you used in Unity Player Settings. * Just as in Unity: And include the “classes.jar” that you can find in this folder: “C:\Program Files (x86)\Unity\Editor\Data\PlaybackEngines\androiddevelopmentplayer\bin\classes.jar” To include a JAR right click on the project and click “Properties” then… [Read more »]

Android_Unity_Plugin

Air Android/iOS – Launch your App from the browser

Adobe Air gives you the opportunity on iOS and Android to create a personal URL that if called from a normal browser will launch your app instead. This is particularly useful if you are redirecting your users from your App to a website, and then you want them to return on your App after they have completed a particular operation. The cool part is that if you are listening for the INVOKE event on your App you can also catch some arguments that the website is sending back.

How to do it Lets say your personal URL is “awesomeapp“, every time you use that name instead of the usual “http” it will open your App. For example, if you write “http://www.google.com” in a browser, it will redirect to the… [Read more »]


Air for Android – Blitting test on Motorola Xoom and Galaxy S 2

I have been trying different Android devices with Air for Android 3.1 and Blitting, I noticed the performance is very different on each of them, on my Galaxy S 2 it runs smooth but on Motorola Xoom lags very bad. I went on the Android Market and downloaded AirBench, it is an app that runs some tests on your phone and tells you the results. Some unrelated tests that stand out were these: Parse 145 KB XML file: Galaxy S 2 – 70ms Xoom – 150ms Allocate 8192 KB of¬†Memory: Galaxy S 2 – 21ms Xoom – 36ms Write read and delete a 1024KB file: Galaxy S 2 –¬†64ms Xoom – 83ms   In my experiment I was running 30/30 FPS on GS2 and 16/30 FPS on Xoom, an impressive… [Read more »]

Motorola Xoom Android