How do you make a WebView work?
<p><img src="https://i.stack.imgur.com/AITAg.png" alt="This this how the layout looks"></p>

<p>And this is how the Java code looks:</p>

<pre><code>package com.example.admin.testingwebview;

import android.support.v7.app.AppCompatActivity;
import android.os.Bundle;
import android.view.View;
import android.webkit.WebView;
import android.widget.EditText;

public class MainActivity extends AppCompatActivity {

@Override
protected void onCreate(Bundle savedInstanceState) {
    super.onCreate(savedInstanceState);
    setContentView(R.layout.activity_main);
}

public void go(View view){
    EditText editText = (EditText) findViewById(R.id.editText);
    WebView webView = (WebView) findViewById(R.id.webView);

    webView.loadUrl(editText.getText().toString());
}
}
</code></pre>

<p>The layout XML File:</p>

<pre><code>&lt;?xml version="1.0" encoding="utf-8"?&gt;
&lt;RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
    xmlns:tools="http://schemas.android.com/tools"
    android:layout_width="match_parent"
    android:layout_height="match_parent"
    android:paddingBottom="@dimen/activity_vertical_margin"
    android:paddingLeft="@dimen/activity_horizontal_margin"
    android:paddingRight="@dimen/activity_horizontal_margin"
    android:paddingTop="@dimen/activity_vertical_margin"
    tools:context="com.example.admin.testingwebview.MainActivity"&gt;

    &lt;EditText
        android:layout_width="wrap_content"
        android:layout_height="wrap_content"
        android:id="@+id/editText"
        android:layout_alignParentTop="true"
        android:layout_alignParentLeft="true"
        android:layout_alignParentStart="true"
        android:layout_alignParentRight="true"
        android:layout_alignParentEnd="true" /&gt;

    &lt;Button
        android:layout_width="wrap_content"
        android:layout_height="wrap_content"
        android:text="Go"
        android:id="@+id/button"
        android:layout_below="@+id/editText"
        android:layout_centerHorizontal="true"
        android:onClick="go" /&gt;

    &lt;WebView
        android:layout_width="match_parent"
        android:layout_height="match_parent"
        android:id="@+id/webView"
        android:layout_centerHorizontal="true"
        android:layout_below="@+id/button" /&gt;
&lt;/RelativeLayout&gt;
</code></pre>

<p>I tried it on an emulator as well as real device.
The EditText and Button part are A-OK, But the Web View shows nothing . . . .</p>

<p>What am I doing wrong?</p>