Ref example to implement web apps on Android using WebView in full screen mode
It's in Kotlin, but otherwise equally applies to Java as well.
This repository demonstrates and provides a reference example of three things at once:
- How to make full-screen activity
- How to use WebView, and integrate it with Android backend using JavascriptInterface
- How to properly make calls back and forth between JS and Android, placing them on UI thread
To make things lightweight, I didn't attach whole Android Studio project, but instead only the essential files that should be placed in an empty project: manifest, layout, and two files with code, and html file (put it into res/assets/ project folder).
This has been tested and works. Thus you can rely on it.