Basic WebView in Android
This post will show you how you can add a web page into an android app. This app will load this blog into the android app using an element called a <WebView /> . So, without wasting any time, let's get started! First, make a new Android Studio project. Use an Empty Activity when prompted. Wait for the build to complete and then start coding the app as follows: First, open AndroidManifest.xml file and add the following permission just before the <application /> element: <uses-permission android:name="android.permission.INTERNET" /> Open activity_main.xml file and remove its content. Add the following code there: <LinearLayout xmlns:android = "https://schemas.android.com/apk/res/android" android:layout_width = "match_parent" android:layout_height = "match_parent" android:orientation = "vertical" /> <WebView android:layout_height = "match_parent" android:la...