How to Convert Website to Android App Using Android Studio

In this tutorial you will learn how to convert website to android app using Android Studio.

Before reading this tutorial I hope that you already have basic knowledge of Android App Development. Otherwise you won’t be able to understand anything.

What I will do here is simply open the website in webview with a loading bar so that it will look like we are using an android app.

By using this method you can convert website or wordpress blog into android application. You can follow this link to see an example app that I have created using this process.

Note: Make sure the website for which you want to create app is responsive, otherwise the app will not look proper.

If you want to integrate admob and google analytics in your app then you can follow below tutorials.

Also Read: Android Google Analytics Integration Tutorial

Also Read: Android AdMob Tutorial

How to Convert Website to Android App Using Android Studio

How to Convert Website to Android App

Create an android studio project with the website name.

Add internet access permission to AndroidManifest.xml file.

Add following code in activity_main.xml file. Here I have added a horizontal progress bar with a webview.

activity_main.xml

Create an xml file inside drawable folder and add following code in it. It is a custom background for progress bar. You can change the color by changing color code in res/values/color.xml file.

bg_progress_bar_webview.xml

Add following code in MainActivity.java file. The code is self explanatory, I have added comments where ever required.

Finally save and run the project. Below is a screenshot how the app will look like.

How to Convert Website to Android App Using Android Studio (Screenshot)

Comment below if you have queries related to above tutorial for how to convert website to android application.

16 thoughts on “How to Convert Website to Android App Using Android Studio”

  1. it worked correctly…..
    but i want to open an application from a link on the website.
    like a facebook page or a link of youtube channel…
    .
    please tell me how can i do this…?

  2. Hi, Great tutorial. I replaced olx.in website. App loads website. But clicking on browse photos option has no response. Is there any additional webview settings i need to enable. Kindly can you help me on this. Thanks

  3. Nice article.
    I have a question. Android Studio does not work on low end computer, in that case, is it a good idea to use online builder that converts my website into android app?

  4. I use this code but is show me this error pls how can i fix it.
    error 1 ERROR:/Users/nazir/AndroidStudioProjects/Myfirst/app/src/main/res/drawable/bg_progress_bar_webview.xml:6: AAPT: error: resource color/colorAccent (aka com.example.myfirst:color/colorAccent) not found.

    error 2
    ERROR:/Users/nazir/AndroidStudioProjects/Myfirst/app/src/main/res/drawable/bg_progress_bar_webview.xml:11: AAPT: error: resource color/colorPrimary (aka com.example.myfirst:color/colorPrimary) not found.

    error 3
    ERROR:/Users/nazir/AndroidStudioProjects/Myfirst/app/src/main/res/drawable/bg_progress_bar_webview.xml:17: AAPT: error: resource color/colorPrimary (aka com.example.myfirst:color/colorPrimary) not found.

Leave a Comment

Your email address will not be published. Required fields are marked *