JAVA


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

Create an Air ANE for Android to dispatch background tasks

If you are using DIRECT or GPU mode with Adobe Air you probably have already noticed that once the app goes in background it stops firing any kind of Event. This means that any task that dispatches Event will stop working. Luckily it is still possible to dispatch Events from an ANE. In this post I am going to create an ANE for Android that dispatches an Event every second which triggers a callback on the AS3 side. Assuming that you have already downloaded the Android SDK, open Eclipse and create a new Android Application Project naming it BackgroundTasker, also if you want change the Package Name, I changeds mine to com.lorenzonuvoletta.backgroundtasker. Click Next a bunch of times and you should have your project setup. You can also go ahead and delete… [Read more »]

flash-air-android