Android Question Open External Link in Default Browser

DonManfred

Expert
Licensed User
Longtime User
You should use webview and use the overrideurl event.
 
Last edited:
Upvote 0

Ederson Kerber

Member
Licensed User
Hi

Thank you for the tips. But the proposed solution does not meet my need. PhoneIntents opens the link in the browser when the link is not inserted into the html file - I already use it for other projects:
B4X:
StartActivity (pi.OpenBrowser ("https://www.google.com"))
.

However, what I need is: When I click the button, the app will open the html file in a webview. In the open html in webview has a link that should be open in the default browser and not inside the webview itself.

Attachment 3 project images:
1 - Start screen with the button to click and open the html file;
2 - Webview with open html;
3 - Link(www.google.com) that is in the html open in the webview, but should be opened in the default browser.

P.S: I tried attaching a sample project example.zip (634KB), however, I received the following error: "The following error occurred: The uploaded file is too large". If you can send it any other way, please let me know.

Thanks!
 

Attachments

  • 1.jpg
    1.jpg
    39 KB · Views: 430
  • 2.jpg
    2.jpg
    141.8 KB · Views: 467
  • 3.jpg
    3.jpg
    82.1 KB · Views: 429
Upvote 0
Top