How To Convert Any Website Into an Android App Free Using ANDROID STUDIO

How To Convert Any Website Into an Android App Free Using ANDROID STUDIO

How To Convert Any Website Into an Android App Free Using ANDROID STUDIO
Tuesday, 16 November 2021

 How To Convert Any Website Into an Android App Free Using ANDROID STUDIO
Convert Website Into Android App



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


android:id="@+id/webview"


import android.webkit.WebSettings;

import android.webkit.WebView;

import android.webkit.WebViewClient;


private WebView mywebView;


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

 mywebView.setWebViewClient(new WebViewClient());

 mywebView.loadUrl("foodapp-5416b.firebaseapp.com/");

 WebSettings webSettings=mywebView.getSettings();

 webSettings.setJavaScriptEnabled(true);



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();

            }

}



How To Convert Any Website Into an Android App Free Using ANDROID STUDIO
4/ 5
Oleh