How to develop Android App for your website
WebView:
A webview is functionality provided by Android to create the easy webview of any website.Converting a website into an android app
A webview is used to convert a website into the android app with few steps and in no time. Let’s create an android app for a website. You have to follow following steps to create your android app for a website.Let’s start:
Steps:
- Start android studio.
- Create a new project and click next.

- Select phone and tablet and click next.

- Choose an empty activity and click next.

- Give a name to your activity or let it by default and click finish and wait while gradle is building.

- Go in activity_main.xml or activity_(your activity name).xml.
- Delete this code from line 2 <android.support.constraint.ConstraintLayout and replace it with <RelativeLayout.


- Now in the body of RelativeLayout write this code: <WebView

- Now go into MainActivity.java.
- Go after public class MainActivity extends AppCompatActivity {
- And write WebView myWebView;

- Now go after setContextView(R.layout.activity_main); and press enter
- Write myWebView = (WebView) findViewById(R.id.my_webview); and press enter.
- Write myWebView.setWebViewClient(new WebViewClient()); and press enter.
- Write myWebView.getSettings().setJavaScriptEnabled(true); and press enter.
- Write myWebView.loadUrl(“any URL for example https://www.t4tutorials.com”);

- Now open manifests file from the left side just above java.

- Go on line before start of <application.
- Write <uses-permission android:name=”android.permission.INTERNET” />

- And now run your app on an android device or amulator.


- And now your android app for your website is ready.
