@Override public void onReceivedError( Context context, WebView view, int errorCode, String description, String failingUrl) { super.onReceivedError(context, view, errorCode, description, failingUrl); mDlg.dismiss(); Toast.makeText(context, description, Toast.LENGTH_SHORT).show(); }
@Override public void onPageStarted(Context context, WebView view, String url, Bitmap favicon) { mDlg = new ProgressDialog(context); mDlg.setMessage("Loading..."); mDlg.show(); super.onPageStarted(context, view, url, favicon); }
@Override public void onPageFinished(Context context, WebView view, String url) { super.onPageFinished(context, view, url); mDlg.dismiss(); }