Skip to content

Ref example to implement web apps on Android using WebView in full screen mode

Notifications You must be signed in to change notification settings

latitov/Android_WebViewApp_FullScreen

Repository files navigation

Android_WebViewApp_FullScreen

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:

  1. How to make full-screen activity
  2. How to use WebView, and integrate it with Android backend using JavascriptInterface
  3. 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.

About

Ref example to implement web apps on Android using WebView in full screen mode

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published