Example usage for android.app Activity getLastNonConfigurationInstance

List of usage examples for android.app Activity getLastNonConfigurationInstance

Introduction

In this page you can find the example usage for android.app Activity getLastNonConfigurationInstance.

Prototype

@Nullable
public Object getLastNonConfigurationInstance() 

Source Link

Document

Retrieve the non-configuration instance data that was previously returned by #onRetainNonConfigurationInstance() .

Usage

From source file:com.twotoasters.android.hoot.activity.HootActivityHelper.java

private Object getLastNonConfigurationInstanceFromActivity(Activity activity) {
    if (activity instanceof FragmentActivity) {
        return ((FragmentActivity) activity).getLastCustomNonConfigurationInstance();
    } else {//from   w  w w.j a v a2 s .c om
        return activity.getLastNonConfigurationInstance();
    }
}