4

I'm having an android project build in android native code[Java]. and one another game project build in unity. I wanna launch the game project from within android app and on exit or completion get back to the android app.

The unity? game project contains following file hierarchy, I don't have any taste of this unity thing. Well i'm not even sure, is this the unity based project ?

Screenshot of game project files http://img821.imageshack.us/img821/321/4ird.png

Lukazoid
  • 19,016
  • 3
  • 62
  • 85
inderbagga
  • 1,008
  • 1
  • 9
  • 18

1 Answers1

0

You should be able to have two activities in your app, one using your java code and another with the Unity game. Android is already pretty good at switching between activities.

Check out this: http://developer.android.com/training/basics/firstapp/starting-activity.html

You'll probably need to add your Java project as a plugin in Unity and override the AndroidManifest.xml in the Unity project to load the Java activity. Check out this documentation on extending android projects in Unity: http://docs.unity3d.com/Documentation/Manual/PluginsForAndroid.html

Felizk
  • 31
  • 1