Code example for WebView

Methods: onPause

0
   } 
 
   @Override 
   public void onPause() { 
      super.onPause(); 
      mWebView.onPause();
      CookieSyncManager.getInstance().stopSync();
   } 
 
   @Override 
   public void onResume() { 
      mWebView.onResume();
      CookieSyncManager.getInstance().startSync();
 
      super.onResume(); 
   } 
 
   @Override 
   public void onDestroy() { 
      if (mWebView != null) {
         mWebView.destroy();