Android Question launch another app

giannimaione

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
 

Mahares

Expert
Licensed User
Longtime 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?
 
Upvote 0
Cookies are required to use this site. You must accept them to continue using the site. Learn more…