Android Question launch another app

giannimaione

Well-Known Member
Licensed User
Hi all,

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

regards
 

Mahares

Well Known Member
Licensed User
Dim pm As PackageManager
StartActivity(pm.GetApplicationIntent("your.other.app.package.name"))
I usually use:
B4X:
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?
 
Top