Posts

Showing posts from 2020

How to create a website as android app using web view in Kotlin language.

Hi All, Now a days Koltin becomes a more popular language in the world as it makes developers happier and open source forever. Here I am going to explain how to create an android app using a web view. By this, you can see the website in your app and behaves like a native app. The only thing to remember is your website should be built-in mobile responsive. Here is the complete working code to load a website in android `webView`. Just create a new project from the android studio and use the following code to load the web view. Just change the URL you want to load it in the web view.  - It will load a website in the webView  - It will check internet connection availability  - If there is no internet ask the user to enable WiFi from the snack bar message  - Loads the progress until website loads  - Handles the error if something went wrong while loading website  - Handles the back button press cases  - Handles exit from the app confirmation with toast activity_main.xml:     <?xml versi