2010-11-18 54 views

回答

0

webview.setWebViewClient(新WebViewClient(){

ProgressDialog MyDialog;

 public void onReceivedError(WebView view, int errorCode,String description,String failingUrl) { 

Toast.makeText(activity, "Oh no! " + description, 
Toast.LENGTH_SHORT).show(); 
     } 
@Override 
public boolean shouldOverrideUrlLoading(WebView view, String url) { 
activity.setProgress(progress * 1000); 
view.loadUrl(url); 
return true; 
} 

    });