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

layout/activity_main.xml

src/main/AndroidManifest.xml

MainActivity.java

menu/menu_main.xml

OUTPUT

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


Partner Sites

VideoToGifs.com

EasyOnlineConverter.com

SqliteTutorials.com


  • Obeda Ale

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

  • Obeda Ale

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

  • AJITH

    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]
    C:UsersuserDesktopandroid projectCrimeHack2appsrcmainjavacomexampleusercrimehackMainActivity.java
    Error:(4, 37) error: package android.support.design.widget does not exist
    Error:(5, 37) error: package android.support.design.widget 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

  • Florent Abega

    is wrond. i put you code. for the test
    i just copy and past you code but is don’ https://uploads.disquscdn.com/images/433e7f19593d9edf7f30faf3dbb5d2d5158557b4bd23ab74a7908a476bd5f873.jpg t workin’

  • Sphiwe Mbangwa

    the line… myWebView = (WebView)findViewById(R.id.webView);

    webView is an error

  • Aleksandar Stankovic