Android examples for android.webkit:WebView
limit WebView functions
import android.app.Activity; import android.util.Log; import android.view.Display; import android.webkit.WebSettings; import android.webkit.WebView; public class Main{ public static void limitWebView(WebView webView, boolean disableJS, boolean disablePlugin, boolean disableFileAccess, boolean noCache) { WebSettings settings = webView.getSettings(); settings.setJavaScriptEnabled(disableJS); // settings.setPluginsEnabled(disablePlugin); settings.setAllowFileAccess(disableFileAccess); settings.setAppCacheEnabled(noCache); }/* w w w . j a va 2s. co m*/ }