set Web Contents Debugging Enabled for WebView - Android User Interface

Android examples for User Interface:WebView

Description

set Web Contents Debugging Enabled for WebView

Demo Code


//package com.java2s;
import android.os.Build;
import android.webkit.WebView;

public class Main {
    public static void setWebContentsDebuggingEnabled(boolean enabled) {
        if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.KITKAT) {
            WebView.setWebContentsDebuggingEnabled(enabled);
        }/*from   w  w  w .  j  a v  a2s.  co  m*/
    }
}

Related Tutorials