When I launch one of my apps from another using the following code, the second app replaces the first. They have only one entry in the list of recent apps, which shows only the first app. The user cannot kill one app without killing the other and cannot switch between them.
However, when I launch Google Earth from my app using the following code, the two do run in parallel. They have separate entries in the list of recent apps. The user can kill Google Earth without killing my app and vice-versa. The user can switch freely between my app and Google Earth. This is the behavior I am looking for.
What is correct way to achieve the desired behaviour with two of my own apps?
Launching a second app of my own:
Dim MyIntent As Intent
MyIntent.Initialize(MyIntent.ACTION_MAIN, "")
MyIntent.SetComponent("my.second.app/.main")
StartActivity(MyIntent)
However, when I launch Google Earth from my app using the following code, the two do run in parallel. They have separate entries in the list of recent apps. The user can kill Google Earth without killing my app and vice-versa. The user can switch freely between my app and Google Earth. This is the behavior I am looking for.
Launching Google Earth:
Dim MyIntent As Intent
MyIntent.Initialize(MyIntent.ACTION_VIEW, "")
MyIntent.SetType("application/vnd.google-earth.kml+xml")
StartActivity(MyIntent)
What is correct way to achieve the desired behaviour with two of my own apps?