Example usage for android.webkit WebView loadUrl

List of usage examples for android.webkit WebView loadUrl

Introduction

In this page you can find the example usage for android.webkit WebView loadUrl.

Prototype

public void loadUrl(String url) 

Source Link

Document

Loads the given URL.

Usage

From source file:com.codename1.impl.android.AndroidImplementation.java

private void execJSUnsafe(WebView web, String js) {
    if (useEvaluateJavascript()) {
        web.evaluateJavascript(js, null);
    } else {// w w w. j  av  a 2s  .  c om
        web.loadUrl("javascript:(function(){" + js + "})()");
    }
}