Code example for WebView: Displaying web pages

Methods: loadUrl, requestFocus, setFocusable, setFocusableInTouchMode

0
        if (wv != null) {
 
            //wv.getSettings().setJavaScriptEnabled(true); 
            //wv.addJavascriptInterface(jsVersion, "JSAppVersion"); 
 
            wv.loadUrl("file:///android_asset/about.html");
            wv.setFocusable(true);
            wv.setFocusableInTouchMode(true);
            wv.requestFocus();
        } 
 
        boolean hideControls = false;
        Intent i = getIntent();
        if (i != null) {
            Bundle e = i.getExtras();
            if (e != null) hideControls = e.getBoolean(EXTRA_NO_CONTROLS);
        } 
 
        Button cont = (Button) findViewById(R.id.cont);
        if (cont != null) {
Stop searching for code, let great code find you!  Add Codota to your java IDE