I have searched and found many related questions:
How to leave the current app and launch an activity of another app?
Launch another application INSIDE an application in Android
I have this code that works to just launch the app:
Intent intent = new Intent(Intent.ACTION_MAIN);
PackageManager managerclock = getPackageManager();
intent = managerclock.getLaunchIntentForPackage("app_package_name");
startActivity(intent);
But they all OPEN the launched app, bringing it to the foreground, and sending my main (launcher) app to the background.
I want to launch the new one, but keep it in the background, and stay in the main one. Any tips?
NOTE: Second, I would like to press a button on the first/welcome screen of the launched app (which has a specific label, that i know), all while keeping it in the background and staying on the main app. Is that possible?