Code example for WebView: Displaying local web pages

Methods: loadData

0
			alert.create().show();
		} 
		if (message.getB().hashCode() != Settings.getMessageHashCode()) {
			AlertDialog.Builder dialog = new AlertDialog.Builder(context);
			dialog.setTitle(message.getA());
			WebView webView = new WebView(context);
			webView.loadData(message.getB(), "text/html", "UTF-8");
			dialog.setView(webView);
			dialog.setPositiveButton(message.getC(), null);
			dialog.setCancelable(true);
			dialog.create().show();
			Settings.saveMessageHashCode(message.getB().hashCode());
			Settings.commit(); 
		} 
	} 
 
	private double getInstalledVersion() { 
		int versionCode;
		String versionName;
		double installedVersion = 0;
Contextual code suggestions in your IDE  Get Codota for Java