Code example for WebView

Methods: onResume

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