- Home /
can I add activities to an exported unity-project into a Google-android project???
Hi I've just started using unity so I don't know it very well my question is: I am creating a project with unity , the project consists of a human rigged model that has to move following given inputs. I know that I can export a unity project into eclipse using the function << Google android project >> but the point of my question is once I have exported the project in eclipse- android can I add other activities??? My goal would be that to create an Android app where in a window there is the rigged model created with unity and in an other window there are other android functions??? is it possible and how ???
thanks for your answers and I hope I've been clear :-)
Answer by Catlard · May 29, 2014 at 10:16 AM
It seems like you want part of the screen to be a Unity Activity, and you want another part to be another android app. You can do this, I've seen it done, but you'll need to modify your android project in Eclipse, as you've said. I'm not sure. Then, to communicate between Unity and the Android app, you can use AndroidJavaObjects and AndroidJavaClasses. I'm not sure exactly if this is what you want to do, but it sounds like it.
EDIT: So, let's imagine that you want your app to take up half the screen on a mobile device. In that case, you'll need to do three things:
1) Modify the Native Unity Activity in the classes.jar file to take half the screen. 2) Modify either another activity to launch Unity when it starts, or start the other activity from a unity activity, to take up the rest of the screen.' 3) Create a class (or classes) that extend the Native Unity Activity class in order to help your unity activity communicate with the rest of your java project.
It's complicated, so I won't try explain everything here, but if you want to talk about it, we can chat about it (email me at sgbraunstein@gmail.com). The information you'll need to start is all here:
http://docs.unity3d.com/430/Documentation/Manual/PluginsForAndroid.html
Although to be honest, it took me a while to figure out what all of that means.
Thanks that's exactly what I want too realize a part of the app must show the unity activity and another part must work an android app. Thanks for your answer
i'm interested too in this argument, could you suggest me any guides or tutorial? :)
Your answer
Follow this Question
Related Questions
A node in a childnode? 1 Answer
Facebook Integration for Android Game 1 Answer
How to pass data from Unity Scene to Android Activity 1 Answer
Ads adding problem! 1 Answer