How to Make WebView Android Application

How to Make WebView Android Application Free Course

How to Make WebView Android Application

How to Make WebView Android Application Free Course 

You can easily create an Android app or application for your website with the code of this web page from my web page or by watching a youtube video and you can easily earn Admob stand by uploading it in Google Play Store or Android users for your website easily. You can access your website and easily expand your business if you have an e-commerce website
How to create web view Android application for Android Studio
First, install JDK on your computer and install Android Studio IDE completely.
Select and click Create New Project Then select Empty Activity.
Type Application Name and Package Name Select Language Java to Finnish.

fast 1.

webview

copy this code and paste this code AndroidManifest.xml

<uses-permission  android:name="android.permission.INTERNET"></uses-permission>

web view

copy this code and paste this code MainActivity.xml

android:id="@+id/webview" 

web view

copy this code and paste this code MainActivity.java

import android.webkit.WebSettings;

import android.webkit.WebView;

import android.webkit.WebViewClient;

web view

copy this code and paste this code MainActivity.java public class

private WebView mywebView; 

web view

copy this code and paste this code MainActivity.java \ Activity Main

mywebView=(WebView) findViewById(R.id.webview);

 mywebView.setWebViewClient(new WebViewClient());

 mywebView.loadUrl("https://www.shajutechbd.com/");

 WebSettings webSettings=mywebView.getSettings();

 webSettings.setJavaScriptEnabled(true); 

web view

copy this code and paste this code MainActivity.java

public class mywebClient extends WebViewClient{

        @Override

        public void onPageStarted(WebView view, String url, Bitmap favicon){

            super.onPageStarted(view,url,favicon);

        }

        @Override

        public boolean shouldOverrideUrlLoading(WebView view,String url){

            view.loadUrl(url);

            return true;

        }

    }

@Override

    public void onBackPressed(){

        if(mywebView.canGoBack()) {

            mywebView.goBack();

        }

    else{

        super.onBackPressed();

            }

} 

web view

 

Web view

There is no problem if you don’t give this code again

copy this code and paste this code AndroidManifest.xml

android:usesCleartextTraffic="true"
 

 

 

how to Place banner and interstitial ads for Android studio WebView application

 

Leave a Comment

Your email address will not be published. Required fields are marked *