Esempio n. 1
0
 @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();
 }
Esempio n. 2
0
 @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);
 }
Esempio n. 3
0
 @Override
 public void onPageFinished(Context context, WebView view, String url) {
   super.onPageFinished(context, view, url);
   mDlg.dismiss();
 }