I have an android project (let's call this Base) in which I have added/imported a new project. Now, I have to open an activity in the new project (imported module) from the Base project.
How could this be achieved?
From the screenshot, I want to open UnityPlayerActivity in a class under androidLauncher package
I tried using packageManager,
Intent launchIntent = getPackageManager().getLaunchIntentForPackage("com.unity3d.player.UnityPlayerActivity");
if (launchIntent != null) {
startActivity(launchIntent);
}
This did not work as it is not getting the package name.