Hi,I am new to android programming In my app I am launching an another app(whats app,calculator,etc) I can launch any app successfully by using this code:

Intent i=getPackageManager().getLaunchIntentForPackage("your package name");
i.setFlags(Intent.FLAG_ACTIVITY_REORDER_TO_FRONT);
startActivity(i);

But it always created new instance/restarted of the app.I want it to launch and resume it from where the user has left it same as we do it by long pressing home button and launching app from recent and resuming it from where we left it..
Please help me....

Recommended Answers

Actually I did nothing of the sort in my app since I had no files or devices open so I had no work to do on a pause or resume. BUT I get it you may need to respond to such events. For this I think we need to open …

Jump to Post

All 2 Replies

OK I will go through it thanks:)

Be a part of the DaniWeb community

We're a friendly, industry-focused community of 1.20 million developers, IT pros, digital marketers, and technology enthusiasts learning and sharing knowledge.