In this tutorial you will learn to make an apk for your website that is convert your website directly to apk file.But for doing this make sure your website must have bootstrap enabled i.e multiwindow supported.Otherwise the allignment will get disturbed.If you have any queries do comment below.

Code for this tutorial

activity_main.xml


xmlns:tools="http://schemas.android.com/tools"
android:id="@+id/activity_main"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:paddingBottom="@dimen/activity_vertical_margin"
android:paddingLeft="@dimen/activity_horizontal_margin"
android:paddingRight="@dimen/activity_horizontal_margin"
android:paddingTop="@dimen/activity_vertical_margin"
tools:context="com.example.nigamasis.beginnertopro.MainActivity">
android:layout_width="match_parent"
android:layout_height="match_parent"
android:id="@+id/webView">



MainActivity.javal

package com.example.nigamasis.beginnertopro;
import android.support.v7.app.AppCompatActivity;
import android.os.Bundle;
import android.webkit.WebView;
import android.webkit.WebViewClient;
public class MainActivity extends AppCompatActivity {
WebView webView;
@Override
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.activity_main);
webView = (WebView)findViewById(R.id.webView);
String url = "http://www.beginnertopro.in/";
webView.setWebViewClient(new WebViewClient());
webView.loadUrl(url);
webView.getSettings().setJavaScriptEnabled(true);
}
}


 

Thank You.

Have a nice day.