Gianni M Well-Known Member Licensed User Longtime User Jan 6, 2015 #1 Hi all, i have an app named APP1 now i want launch another app named APP2 from APP1. how to do? regards
Hi all, i have an app named APP1 now i want launch another app named APP2 from APP1. how to do? regards
Erel B4X founder Staff member Licensed User Longtime User Jan 6, 2015 #2 Code: Copy Dim pm As PackageManager StartActivity(pm.GetApplicationIntent("your.other.app.package.name")) Upvote 0
Code: Copy Dim pm As PackageManager StartActivity(pm.GetApplicationIntent("your.other.app.package.name"))
M Mahares Expert Licensed User Longtime User Jan 6, 2015 #3 Erel said: Dim pm As PackageManager StartActivity(pm.GetApplicationIntent("your.other.app.package.name")) Click to expand... 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
Erel said: Dim pm As PackageManager StartActivity(pm.GetApplicationIntent("your.other.app.package.name")) Click to expand... 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?
DonManfred Expert Licensed User Longtime User Jan 6, 2015 #4 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
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