Android Question Display an HTML Page on a Website

Intelemarketing

Active Member
Licensed User
Longtime User
I have found this which opens a website (Phone Library Required) - No Problems

Open Website:
    Dim p As PhoneIntents
     StartActivity(p.OpenBrowser("http://www.b4x.com"))

What I would like to do seems so simple, but does not work - I want to display MyPage.html which is on my website

The code below just tells me ERROR CODE 404 even though everything is in the right place

Open Website:
    Dim p As PhoneIntents
     StartActivity(p.OpenBrowser("http://www.mywebsite.com/MyPage.html"))

What to do please ?
 

JohnC

Expert
Licensed User
Longtime User
Since this is a non-ssl connection (just http not https), you need to add this line to your manifest:

B4X:
 CreateResourceFromFile(Macro, Core.NetworkClearText)
 
Last edited:
Upvote 0
Cookies are required to use this site. You must accept them to continue using the site. Learn more…