To help make our Android applications look even more professional, we can include HTML formatted text and display it in a WebView
. Here’s the simplest way I’ve found to have local HTML, image and style files and display them. This is the same process I use to display help in Grandma Jong.
First, I’ve stored all my files in a subfolder of assets. This will make it easier to load the HTML, and via some built-in functionality in Android, it will load all assets from the same folder as well. Here’s a screenshot of the assets folder:
Continue reading “Adding formatted HTML text to your Android app”