Example usage for android.webkit WebView saveState

List of usage examples for android.webkit WebView saveState

Introduction

In this page you can find the example usage for android.webkit WebView saveState.

Prototype

@Nullable
public WebBackForwardList saveState(Bundle outState) 

Source Link

Document

Saves the state of this WebView used in android.app.Activity#onSaveInstanceState .

Usage

From source file:com.commonsware.android.feedfrags.ContentFragment.java

@Override
public void onSaveInstanceState(Bundle state) {
    super.onSaveInstanceState(state);

    WebView browser = getBrowser();

    if (browser != null) {
        browser.saveState(state);
    }/*from w w  w  .j av a  2s  .c  o  m*/
}