D DawningTruth Active Member Licensed User Mar 13, 2019 #1 I am using the following code to open a browser when the user clicks on a button: Code: Copy Private p As PhoneIntents Sub btnViewInBrowser_Click p.OpenBrowser("http://www.google.co.za") End Sub When I click on the button nothing happens. I have installed the Phone Library (Version 2.5) Any suggestions?
I am using the following code to open a browser when the user clicks on a button: Code: Copy Private p As PhoneIntents Sub btnViewInBrowser_Click p.OpenBrowser("http://www.google.co.za") End Sub When I click on the button nothing happens. I have installed the Phone Library (Version 2.5) Any suggestions?
Erel B4X founder Staff member Licensed User Longtime User Mar 13, 2019 #2 DawningTruth said: Any suggestions? Click to expand... See the inline help. Also available here: https://www.b4x.com/android/help/phone.html#phoneintents_openbrowser Upvote 0
DawningTruth said: Any suggestions? Click to expand... See the inline help. Also available here: https://www.b4x.com/android/help/phone.html#phoneintents_openbrowser
D DawningTruth Active Member Licensed User Mar 13, 2019 #3 Erel said: See the inline help. Also available here: https://www.b4x.com/android/help/phone.html#phoneintents_openbrowser Click to expand... Thx Upvote 0
Erel said: See the inline help. Also available here: https://www.b4x.com/android/help/phone.html#phoneintents_openbrowser Click to expand... Thx
D DawningTruth Active Member Licensed User Mar 13, 2019 #4 Got it working. The corrected code should be: Code: Copy Private p As PhoneIntents Sub btnViewInBrowser_Click StartActivity(p.OpenBrowser("http://www.google.co.za")) End Sub Does the general principle of using start activity apply to all intents? Upvote 0
Got it working. The corrected code should be: Code: Copy Private p As PhoneIntents Sub btnViewInBrowser_Click StartActivity(p.OpenBrowser("http://www.google.co.za")) End Sub Does the general principle of using start activity apply to all intents?
Erel B4X founder Staff member Licensed User Longtime User Mar 13, 2019 #5 An intent by itself does nothing. There are all kinds of ways to start intents and it depends on the intent target. In most cases intents should be started with StartActivity. Upvote 0
An intent by itself does nothing. There are all kinds of ways to start intents and it depends on the intent target. In most cases intents should be started with StartActivity.
D DawningTruth Active Member Licensed User Mar 13, 2019 #6 Erel said: An intent by itself does nothing. There are all kinds of ways to start intents and it depends on the intent target. In most cases intents should be started with StartActivity. Click to expand... Thx Upvote 0
Erel said: An intent by itself does nothing. There are all kinds of ways to start intents and it depends on the intent target. In most cases intents should be started with StartActivity. Click to expand... Thx