Code example for WebView: Displaying local web pages

Methods: loadData, setHorizontalScrollBarEnabled, setVerticalScrollBarEnabled

1
            break; 
        default: 
            { 
                Logger.I(TAG, "Loading default html data");
 
                WebView webView = new WebView(activity);
                webView.setVerticalScrollBarEnabled(false);
                webView.setHorizontalScrollBarEnabled(false);
                webView.loadData("<html><title>Loading</title><body text='white' bgcolor='black'>Loading...</body></html>", "text/html", "utf-8");
                mView = webView;
            } 
        } 
        activity.addContentView(mView, new LinearLayout.LayoutParams(LinearLayout.LayoutParams.MATCH_PARENT, LinearLayout.LayoutParams.MATCH_PARENT));
        Logger.I(TAG, "Done");
    } 
	 
	public void start() { 
	    mStartTimeMs = SystemClock.uptimeMillis();
		nativeStart(); 
	} 
Contextual code suggestions in your IDE  Get Codota for Java