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

DonManfred

Expert
Licensed User
Longtime User
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
Top