enable Url Loading on WebView - Android User Interface

Android examples for User Interface:WebView URL

Description

enable Url Loading on WebView

Demo Code


//package com.java2s;

import android.webkit.WebView;
import android.webkit.WebViewClient;

public class Main {
    public static void enableUrlLoading(WebView wv) {
        wv.setWebViewClient(new WebViewClient() {
            @Override/*www . j  ava 2  s  .  co  m*/
            public boolean shouldOverrideUrlLoading(WebView view, String url) {
                return false;
            }
        });
    }
}

Related Tutorials