Launch 3rd party app and resume it on the state where the user has left it

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • Adarsh32
    New Member
    • Jul 2016
    • 1

    Launch 3rd party app and resume it on the state where the user has left it

    Hi, I am new to android development field.In my app I want to launch an app by its package name and I can successfully do that by using this code
    Code:
    Intent intent=getPackageManager().getLaunchIntentForPackage("com.android.mms");
                startActivity(intent);
    It launches the app successfully but it restart the app from its main launcher even if my app is running in the background .I want to launch that certain app in such a way that it should be resumed from where the user has left it..

    I tried set flags method with intent but it always restarted the app from beginning..
    Thanks in advance
  • kmartin
    New Member
    • Dec 2016
    • 7

    #2
    You should find related documentation.

    Saving the state from outside involve saving the whole process including OS resources in use. And relaunch with restoration means exact process restoration, including OS resources, which can be pretty complicated and almost impossible.

    Though I'm not sure about this.

    Comment

    Working...