How To Convert Any Website Into a Professional Android App Free

 

It is very easy to convert any website to an android application for this only you need android studio install in your computer or laptop follow these steps and convert your website to professional android application

 

Step 1: Start new project in android studio select empty activity , click next give name to your application and select java in language option and click finish.

Step 2: In left side bar double click androidmanifest.xml.

Step 3: Copy the  below code and paste intoandroidmanifest.xml file under the package tab for granting internet permission then press control +A and Control +S to  save the process.

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

 

Step 4:go to Activity_main.xml here you see code of text view code select this and delete.

Step 5:Here select single line code before layout and delete it and type Relative then  press control +A and Control +S to  save the process

Step 6: click the design view on right top corner and in the search bar type web and drag and drop webview in the empty screen.

Step 7: goto code view press enter below the web view and copy and paste the below code.

android:id=”@+id/webview”

 

step 8:goto res tab in right hand side click values and double click styles.xml

demo

<style name=”AppTheme” parent=”Theme.AppCompat.Light.DarkActionBar”>In this code delete Dark and write No and save this code.Step9:goto MainActivity.java click on three dot after import and paste the below three code under the <import android.os.Bundle;>

 

import android.webkit.WebSettings;

import android.webkit.WebView;

import android.webkit.WebViewClient;

 

Step 10:paste the below code under public class MainActivity extends AppCompatActivity

 

private WebView mywebView;

 

step 11; copy these 5 code after press enter to setContentView(R.layout.activity_main);

 

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

mywebView.setWebViewClient(new WebViewClient()); 

mywebView.loadUrl(“https://coupon.technovedant.com/”); 

WebSettings webSettings=mywebView.getSettings(); 

webSettings.setJavaScriptEnabled(true);

 

step 12 press enter after the close bracket and paste the below code

 

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

                  }

          }

Step 13 :you see Bitmap favicon in this code click alt +enter after move curser over it and click import after this

Step14: change your website url in this code when you just move upword see the url

Step15:goto Build and click generate signed bundle /apk select apk and click next give path where you want to store your application by click new

Step 16 fill password and all the details here and click ok .then click next and then select release and check both signature checkbox and click finish

Step 17; your application is ready  this may take some time . click locate when you see a notification of your application ready message in right corner ,rename your application

 

step 18: give and icon to your application of 500px * 500 px size by clicking  res tab in the right side select drawable and right click on that select new and then image asset select image or text

step 19: again goto Build and click generate signed bundle /apk select apk to generate application

Step 20: your application is ready rename it and test it on your android phone .and enjoy