For whom it can help:
As mentioned in @Oli, you can communicate between Unity and an Android application using this method:
UnityPlayer.UnitySendMessage("GameObjectName1", "MethodName1", "Message to send");
For this method to work, you must follow this guide: http://forum.unity3d.com/threads/71607-Integrating-Unity-and-Eclipse
You can also call Java methods from a Unity C # file - http://docs.unity3d.com/Documentation/Manual/Plugins.html
This code can be used to launch a Unity application after adding it as a library to an Android project:
UnityPlayer mPlayer = new UnityPlayer(this); // Put your activity object here int glesMode = mPlayer.getSettings().getInt("gles_mode", 1); boolean trueColor8888 = false; mPlayer.init(glesMode, trueColor8888);
Hope this helps anyone ... I researched a lot until I found this information.
source share