set Web Contents Debugging Enabled - Android android.webkit

Android examples for android.webkit:WebView

Description

set Web Contents Debugging Enabled

Demo Code

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 ww  .j ava  2s. c  o m*/
    } 

}

Related Tutorials