How can I display HTML CSS JS file on a webview?

html file.txt (2.7 KB)

This is an HTML code written in HTML CSS and JS. I’ve tried all possible ways I could do, please if anyone can test this file on a webview and see if it runs. And please let me know the way to do it. Would be a big relief. ThankYou

Tested on AppInventor and the html displays and works. I put the html file in the assets (media folder) - (some work required to size it correctly to fit when in portrait mode though)

image

@Ronnie Try this aia :slightly_smiling_face: :point_down:

html.aia (2.3 KB)

Yes but java script doesnt work :frowning_face:

@Ronnie Ok Try this one :point_right: html.aia (2.5 KB)

This will definitely work :slightly_smiling_face::+1:

:frowning_face:

Did you tried with companion ?
Try as Apk

html.apk (5.2 MB)

@Ronnie Ok Now try with this one :point_right: htmlnew.aia (3.0 KB)

htmlnew.apk (5.2 MB)

This will work even with companion + apk.

Well, what can I say…

Thankyou for being a life saver, it really worked, not in the companion but as an apk.
thanks once again :blush:

Please mark as solution if it helped you :slightly_smiling_face:

Also if you dont mind me asking, can I use the raw code instead of the .html file?

Did you mean by entering html code in text box and run it using this block :point_down:

component_method

If you were saying this, then i found that the javascript of your html was not working !!

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.