Android: Problems opening webview


I’m using SDL2.0.3 on Android.
I’m trying to display a web page using the following code taken from StakeOverFlow here: Here

In my onCreate call I have:
WebView mWebview;

    mWebview  = new WebView(this);
    mWebview.getSettings().setJavaScriptEnabled(true); // enable javascript

and in a view web call I have:

Log.v("SDL", "Web 1"); Runnable() {
    public void run() {
        Log.v("SDL", "Web 2");
        setContentView(mWebview );
        Log.v("SDL", "Web 3");

When I try to display the webpage I get the ‘Web 1’ log so I know the code is getting that far, but the web page is never shown.

However, if I copy this code to the onPaused call it works.

Any ideas?