Android Question Button Click Not Opening in Browser

DawningTruth

Active Member
Licensed User
I am using the following code to open a browser when the user clicks on a button:

B4X:
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?
 

DawningTruth

Active Member
Licensed User
Got it working. The corrected code should be:

B4X:
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
Top