Code example for WebView

Methods: onPause

0
  @Override 
  public void onPause() { 
    super.onPause(); 
 
    if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.HONEYCOMB) {
      mWebView.onPause();
    } 
  } 
 
  /** 
   * Called when the fragment is no longer resumed. Pauses 
   * the WebView. 
   */ 
  @TargetApi(11) 
  @Override 
  public void onResume() { 
    if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.HONEYCOMB) {
      mWebView.onResume();
    } 
 
    super.onResume();