enable Javascript on WebView - Android User Interface

Android examples for User Interface:WebView Javascript

Description

enable Javascript on WebView

Demo Code


//package com.java2s;

import android.webkit.WebView;

public class Main {
    public static void enableJavascript(WebView wv) {
        wv.getSettings().setJavaScriptEnabled(true);
        wv.getSettings().setJavaScriptCanOpenWindowsAutomatically(true);
    }//  www  . j  ava 2  s .  c om
}

Related Tutorials