Android Tutorial Open the browser with a specific web page

Opening the browser is very simple.
First you need to add a reference to the Phone library.
Then:
B4X:
    Dim p As PhoneIntents
    StartActivity(p.OpenBrowser("http://www.b4x.com"))

p.OpenBrowser returns an Intent object. Intents are like messages that are sent to the system which then acts based on the information stored in the intent.
StartActivity keyword can be used to open other internal activities or to send intents to the system.
 

DonManfred

Expert
Licensed User
Longtime User
After opening the page how do place the html text into a string?
See here to get the html from a webview. This will NOT work when you open the device browser with the intent-call. You need a app-intern webview for that.
If you dont need to show the website then you simply can use httputils to download the websites htmlcode
 
Top