That way, you can simply use the WebView control to display web content on the screen, which can view the WebView control as a browser view.
You can also dynamically formulate an HTML string and load it into a WebView using the loadData () method. This requires three arguments. String htmlData, String mimeType and String encoding
First of all, you create the file test.html and save it in the resources folder.
The code:
<html> <Body bgcolor="yellow"> <H1>Hello HTML</H1> <font color="red">WebView Example by Android Devloper</font> </Body> </html>
if you want to see the full source code: Show HTML content on Android
source share