Launch Unity Activity from an Android app

We’ve noticed that the Unity editor often resets the package name of your project when you save it or when you close the build settings. Make sure to check for this (you will see the wrong package in the editor) and correct it if needed.

Intent intent = new Intent();
intent.setComponent(new ComponentName("com.YourActivityPackage.name",
    "com.unity3d.player.UnityPlayerActivity"));
startActivity(intent);