Android Question launch another app

Gianni M

Well-Known Member
Licensed User
Longtime User
Hi all,

i have an app named APP1
now i want launch another app named APP2 from APP1.
how to do?

regards
 
Dim pm As PackageManager
StartActivity(pm.GetApplicationIntent("your.other.app.package.name"))

I usually use:
Code: Copy
MyIntent.Initialize(MyIntent.ACTION_MAIN, "")
  MyIntent.SetComponent("your.other.app.package.name/.main")
  StartActivity(MyIntent)
Is there any preference to which of the two methods to use?
 
Upvote 0
The first will start the app with the activity which the apps author designes in his manifest

The second will start the apps main activity
 
Upvote 0
Back
Top