Code example for WebView

Methods: onResume

0
    /** 
     * Called when the fragment is no longer resumed. Pauses the WebView. 
     */ 
    @Override 
    public void onResume() { 
        mWebView.onResume();
        super.onResume(); 
    } 
 
    /** 
     * Called when the WebView has been detached from the fragment. 
     * The WebView is no longer available after this time. 
     */ 
    @Override 
    public void onDestroyView() { 
        mIsWebViewAvailable = false;
        super.onDestroyView(); 
    } 
 
    /** 
     * Called when the fragment is no longer in use. Destroys the internal state of the WebView.