Skip to content

Basic Template for making a Webview App to view your website, with a Google Ad Banner in the bottom

Notifications You must be signed in to change notification settings

victorcwai/Android-App-Webview-AdBanner-Template

Repository files navigation

Android-App-Webview-AdBanner-Template

Basic Template for making a Webview App to view your website, with a Google Ad Banner in the bottom

  • CompileSdkVersion 28
  • Using androidx

Overriding Webview:

  • Pressing back button will return to last page
  • Won't reload page when orientation change

To use this,

In MainActivity.java, change webview.loadUrl("yourLink") and MobileAds.initialize(this, "yourAdUnitId")

In activity_main.xml, change ads:adUnitId="yourAdUnitId"

You still need to make your web page mobile friendly though.

It will look like this (blank part will be your page):
alt text

About

Basic Template for making a Webview App to view your website, with a Google Ad Banner in the bottom

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages