I want to launch my other app from my application and then return back to the first application.
For example:
I have app with contacts, I want to send an email to selected contact with my company's app, click on email address, open my other installed app, write text and send it.. And then I need to return back to previous application with contacts.
I'm using this solution:
Intent LaunchIntent = getPackageManager().getLaunchIntentForPackage("com.package.address");
startActivity(LaunchIntent);
from: Launch an application from another application on Android
It launches email app from my first app, unfortunately there is no way to return back to the first application without kill first app in app manager.
When I tried open first app again from app maganer or app icon - it launches second (email) application again