Welcome to AdvancedWebview! This AdvancedWebview comes with internet connection detection, banner and interstitial ads, and other exciting features.
-
Internet Connection Detection: The app can detect whether the device has an internet connection.
-
Banner Ad: Display a banner ad at the bottom of the app to generate revenue.
-
Interstitial Ad: Show a full-screen ad when the user returns to the app, providing a seamless ad experience.
-
Google Analytics: (Add your
google_services.json
file to the app directory). -
Swipe to Refresh: Swipe from the top of the page to refresh the current page.
-
Link Loading Indicator: Show an indication when a link is loading using a progress bar.
To install the app on your own device:
-
Download the app APK and Zip file from AdWeb.com.
-
Install the APK on your Android device.
To integrate your AdMob Ad IDs, follow these steps:
-
Open the
MainActivity.java
file, and replaceca-app-pub-3940256099942544/1033173712
with your actual AdMob Interstitial Ad Unit ID.// Initialize the AdView adView = findViewById(R.id.adView); // ... // Initialize the InterstitialAd interstitialAd = new InterstitialAd(this); // Replace "YOUR_INTERSTITIAL_AD_UNIT_ID" with your actual AdMob Interstitial Ad Unit ID InterstitialAd.load(this, "ca-app-pub-3940256099942544/1033173712", adRequest, new InterstitialAdLoadCallback() { @Override public void onAdLoaded(@NonNull InterstitialAd interstitialAd) { // The mInterstitialAd reference will be null until // an ad is loaded. fullscreen(); mInterstitialAd = interstitialAd; Log.i(TAG, "onAdLoaded"); } @Override public void onAdFailedToLoad(@NonNull LoadAdError loadAdError) { // Handle the error Log.d(TAG, loadAdError.toString()); mInterstitialAd = null; } });
-
Replace application ID in Manifest file.
//Replace with your application ID
<meta-data
android:name="com.google.android.gms.ads.APPLICATION_ID"
android:value="ca-app-pub-6433617325894503~7780935405"/>
- In XML replace with your banner ID.
<com.google.android.gms.ads.AdView
xmlns:ads="http://schemas.android.com/apk/res-auto"
android:id="@+id/adView"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_gravity="bottom"
ads:adSize="BANNER"
ads:adUnitId="ca-app-pub-3940256099942544/6300978111">
- Add
google_services.json
in the app directory.
If you find this project helpful or just want to support its development, consider buying me a coffee:
You can also support via PayPal:
Your support is greatly appreciated!