Code example for JsResult

Methods: confirm

0
 
	@Override 
    public boolean onJsAlert(WebView view, String url, String message, JsResult result) {
        Log.d(TAG, message);
        new AlertDialog.Builder(view.getContext()).setMessage(message).setCancelable(true).show();
        result.confirm();
        return true; 
    } 
	 
	@Override 
	public void onReceivedTitle(WebView webView, String title) {
		if(title != null && !title.isEmpty())
			activity.setTitle(title);
	} 
 
	@Override 
	public boolean onConsoleMessage(ConsoleMessage consoleMessage) {
		Log.v(TAG, consoleMessage.sourceId() + ':' + consoleMessage.lineNumber() + " " + consoleMessage.message());
		return true; 
	} 
Stop searching for code, let great code find you!  Add Codota to your java IDE