Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

709
Views
How do I launch a unity game from within an android app?

I have a unity game built, in C#, and an android app, in java. I would like to open the game from the android app as the app has some other functionalities that do not depend on the game.

I have never done integration of software before so I'm not sure how to proceed. I have thought about integrating the game within the app or have the game as a separate app on the phone and having the app opening it.

I would use this code fragment to launch the game from my main activity in android studio but I have some questions about it:

Button gameButton = (Button) findViewById(R.id.button_route_practice);
    gameButton.setOnClickListener(new View.OnClickListener() {
        @Override
        public void onClick(View v) {
            Intent intent = getPackageManager().getLaunchIntentForPackage("com.Author.DriveAppGame");
            startActivity(intent);
        }
    });

Where do I add my unity game package name for the app to find it?

How does android look for the game so that it actually starts it once the package name is found ?

over 4 years ago · Santiago Trujillo
1 answers
Answer question

0

I have never done what you are asking for, but I have exported Unity games to Android Studio where you can modify it's activities, maybe you could combine the exported project from Unity with your android app? You just need to check "Export project" in the Build Settings: Build Settings

over 4 years ago · Santiago Trujillo Report
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!