Button sends to weblink

thestar19

Member
Licensed User
Longtime User
Hey guys

This is what my goal is:

1.The user presses an button.
2.The buttons sends him to his regular mobile browser and opens an link that I have defined previously.
3.He is now at the webpage in the same mode as if he would have been going there manually.

Any Idea how I am going to build it?

Thank you
Thestar19
 

NJDude

Expert
Licensed User
Longtime User
Something like this:
B4X:
Sub Globals

    Dim TheLink As String

End Sub

...

TheLink = "http://www.b4x.com"

Sub Button1_Click

    Dim i As Intent

     i.Initialize(i.ACTION_VIEW, TheLink)

    StartActivity(i)

End Sub
 
Last edited:
Upvote 0

thestar19

Member
Licensed User
Longtime User
Something like this:
B4X:
Sub Globals

    Dim TheLink As String

End Sub

...

TheLink = "http://www.b4x.com"

Sub Button1_Click

    Dim i As Intent

     i.Initialize(i.ACTION_VIEW, TheLink)

    StartActivity(i)

End Sub

Thank you
It worked perfectly :)
 
Upvote 0
Top