R rdt1964 New Member Licensed User Longtime User Sep 3, 2012 #1 Hi, I would like to run an app from my program. I understand I have to use "Intent". The question what is the exact name of the app. For instance : Dim Intent1 As Intent Intent1.Initialize(Intent1.ACTION_MAIN, "") Intent1.SetComponent("xxx") StartActivity(Intent1) On xxx I would like to activate the waze app. Is this the right thing to do ?? Thank you in advance, Alberto.
Hi, I would like to run an app from my program. I understand I have to use "Intent". The question what is the exact name of the app. For instance : Dim Intent1 As Intent Intent1.Initialize(Intent1.ACTION_MAIN, "") Intent1.SetComponent("xxx") StartActivity(Intent1) On xxx I would like to activate the waze app. Is this the right thing to do ?? Thank you in advance, Alberto.
Erel B4X founder Staff member Licensed User Longtime User Sep 3, 2012 #2 The simplest way to find the component name is to run the application (waze) while the IDE is connected and check the unfiltered logs. The intent that the launcher sends will appear in the logs. Upvote 0
The simplest way to find the component name is to run the application (waze) while the IDE is connected and check the unfiltered logs. The intent that the launcher sends will appear in the logs.
NJDude Expert Licensed User Longtime User Sep 3, 2012 #3 You can do what Erel suggested: Code: Copy Dim Intent1 As Intent Intent1.Initialize(Intent1.ACTION_MAIN, "") Intent1.SetComponent("com.waze/.FreeMapAppActivity") StartActivity(Intent1) Or, something like this too: Code: Copy 'You need to reference the Phone library. Dim pm As PackageManager Dim in As Intent in = pm.GetApplicationIntent("com.waze") If in.IsInitialized Then StartActivity(in) End If Last edited: Sep 3, 2012 Upvote 0
You can do what Erel suggested: Code: Copy Dim Intent1 As Intent Intent1.Initialize(Intent1.ACTION_MAIN, "") Intent1.SetComponent("com.waze/.FreeMapAppActivity") StartActivity(Intent1) Or, something like this too: Code: Copy 'You need to reference the Phone library. Dim pm As PackageManager Dim in As Intent in = pm.GetApplicationIntent("com.waze") If in.IsInitialized Then StartActivity(in) End If
R rdt1964 New Member Licensed User Longtime User Sep 3, 2012 #4 Thanks a lot ! Hi, Thank you very much, your help was very useful. Best regards, Alberto Upvote 0