Convert Website Into Android App

Convert Website Into Android App | Touchstone Infotech

Do you have a website that you would like to convert into an Android app? If so, this blog post is for you! In this post, we will discuss how to convert a website into an Android app. We will also provide tips on how to make your website mobile-friendly. So, let’s get started!

Below video will help you create an Android App APK file for your website view. Use the below code to create android app.

Automate your business with Zoho One

<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("https://www.touchstoneinfotech.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();
            }
}