How to Convert a Website into Android Application using Android Studio

In this tutorial we will learn How to Convert a Website into Android Application using Android Studio

So lets create a project.

Step 1 – Create new Android project.

Provide Activity name as EasyOnlineConverter

Step 2 – Add an webView to your activity as shown in the picture below.

Convert website to android app Design





Now run your android app, and you will see the following result

Convert website to android app
Click the button below to Download Source code

Download Source Code

Video Instructions

Partner Sites

  • Obeda Ale

    Good job but if it has any viedo in website it is not working why

  • Obeda Ale

    Good job but if it has any viedo in website it is not working why


    Thank you. It was very helpful. how can we view In Desktop view from the android app.. now it is automatically changed to mobile version when we access the URL from app

  • Sagar Parmar

    Thank You…..very helpful

  • Nice descriptive and very helpful.

  • Pankaj Pednekar

    how to copy and paste this code in android studio

  • Syed Shan

    These Errors Took Place While Creating APK :

    Information:Gradle tasks [:app:clean, :app:generateDebugSources, :app:generateDebugAndroidTestSources, :app:mockableAndroidJar, :app:prepareDebugUnitTestDependencies, :app:assembleDebug]
    Error:(4, 37) error: package does not exist
    Error:(5, 37) error: package does not exist
    Error:(42, 36) error: cannot find symbol variable menu
    Error:(54, 23) error: cannot find symbol variable action_settings
    Error:Execution failed for task ‘:app:compileDebugJavaWithJavac’.
    > Compilation failed; see the compiler error output for details.
    Information:BUILD FAILED
    Information:Total time: 39.347 secs
    Information:5 errors
    Information:0 warnings
    Information:See complete output in console

  • Aniruddha Basak

    I can’t able to download pdf files on this webview app. pls help

    • Rahul Gupta

      same problem with me please help..

  • Florent Abega

    is wrond. i put you code. for the test
    i just copy and past you code but is don’ t workin’

    • How did you resolve that error code?

  • Sphiwe Mbangwa

    the line… myWebView = (WebView)findViewById(;

    webView is an error

    • How did you resolve that error message?

      • Sphiwe Mbangwa

        Like a silly Noob I am, I forgot to input the below line in the activity_main.xml

        android:id=”@+id/webView” *aka I didn’t name Webview

    • replace with this
      myWebView = (WebView)findViewById(;

      • Shahzad Khursheed

        I replace with this line but still getting error
        How to resolve it?

  • Aleksandar Stankovic
  • okay baby

    • Willem Dodds


  • Abdullah

    Very nice n clear tutorial, thank you very much

  • shilpa

    how to use call service when we convert website to mobile app

  • Mansoor Khan

    and how to add admob adds code like banner ad video adds etc please help us

  • Visha sharma

    Error:Failed to capture snapshot of output files for task ‘transformClassesWithDexForDebug’ property ‘streamOutputFolder’ during up-to-date check.
    > Failed to create MD5 hash for file ‘C:UsersAdminAndroidStudioProjectsEasyOnlineConverterappbuildintermediatestransformsdexdebugfolders10005slice_8classes.dex’.

    What type of this issue? How to resolve?

  • Mani Gopal

    many issues mostly appcompact library issue. Could you start wiith install, SDK to be installed & library dependencies ????

  • תומר אברהם

    hi thank you for your guide it was really helpful.
    I have a question and I be glade if you can help me.
    I convert a website that have a login screen how can I auto fill this fields and submit ?

  • Mohammed Khan
    • Willem Dodds

      Mohammed did you solve the problem it should say myWebView, the name he gave at the top. I also have/had this problem.

  • Very good and thank for sharing

  • Bindeshwar Kush

    Very good tutorial, thanks for sharing,

  • Hussein Alhussein

    i did like you wrote but errors appear!!! any body help?

  • rkhanda

    i just created an app as told to convert web to app. and created my first ever APK file and run in my phone.
    Only problem till now I found out that is when i click shopping cart in Website it says “the item being added to your shopping cart. However, in the app it does not show that popup though it adds the item in my shopping cart.
    What should i do? What changes I need to make in my App.
    Also I would like to change the APP Icon that is should show the Icon I want for my APP in the mobile. What do i need to do to change that icon?

  • Ome Chukwuemeka

    Is it possible to update the android app. if it is possible, how can it be done since it was a website that was converted into an apk file. thanks

  • Richard S. Hartmetz

    The version of Android Studio I downloaded appears to be an updated one, and a number of things are different. When I attempted to paste the code in the appropriate sections, it does not run the app, and gives errors at different points. Is there an updated version of the instructions?

  • Raza Rajwani

    Great Article, can you please share the steps for IOS apk also

  • Pretty sweet quick and easy guide! I’ve got a similar (slightly more in-depth) guide on converting your website into an app here – even includes setting up push notifications!

  • Tobi Wimma

    Are all the APIs available (localStorage, fetch, …) ?

  • Lukas Narkunas

    I was trying to do the same on new android studio, I think its not working anymore.

  • maitri mahavidyalaya
  • how to creat apk file now?