Returning Back To The Previous Application?
I have following two applications, A & B. Application A has a service which waits for application B to come in foregrouond. Now, when application B comes in foreground, service
Solution 1:
From the docsFLAG_ACTIVITY_REORDER_TO_FRONT
:
IntentLaunchIntent= m_context.getPackageManager().getLaunchIntentForPackage(packageNameOfAppB);
LaunchIntent.setFlags(Intent.FLAG_ACTIVITY_REORDER_TO_FRONT);
startActivity(LaunchIntent);
NOTE:Works only if the application B was launched before and in activity history stack.
Post a Comment for "Returning Back To The Previous Application?"