F Fernando Pessoa Member Apr 13, 2020 #1 I want that a user click on an image and be redirected to an URL on the web. I saw this info in this Forum(2013), which worked with a Button---accordingly to the member information: Sub Button1_Click Dim i As Intent i.Initialize(i.ACTION_VIEW, "http://www.google.com") StartActivity(i) End Sub I tried it, replacing Button1_Click by ImageView1_Click but it doesn't work. If this way doesn't work with ImageView1_Click, what is the alternative way? I can't find anythink about this in the web or in this Forum. Thank you in advance
I want that a user click on an image and be redirected to an URL on the web. I saw this info in this Forum(2013), which worked with a Button---accordingly to the member information: Sub Button1_Click Dim i As Intent i.Initialize(i.ACTION_VIEW, "http://www.google.com") StartActivity(i) End Sub I tried it, replacing Button1_Click by ImageView1_Click but it doesn't work. If this way doesn't work with ImageView1_Click, what is the alternative way? I can't find anythink about this in the web or in this Forum. Thank you in advance
LucaMs Expert Licensed User Longtime User Apr 13, 2020 #2 It should work. Your ImageView1 probably doesn't have the same event name. Put a log in the ImageView1_Click, to see if it runs. Upvote 0
It should work. Your ImageView1 probably doesn't have the same event name. Put a log in the ImageView1_Click, to see if it runs.
F Fernando Pessoa Member Apr 13, 2020 #3 Thank you Lucas for your help. It's working fine. Best regards Upvote 0