Example usage for android.os Bundle putBundle

List of usage examples for android.os Bundle putBundle

Introduction

In this page you can find the example usage for android.os Bundle putBundle.

Prototype

public void putBundle(@Nullable String key, @Nullable Bundle value) 

Source Link

Document

Inserts a Bundle value into the mapping of this Bundle, replacing any existing value for the given key.

Usage

From source file:com.commonsware.cwac.crossport.demo.MainActivity.java

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

    Bundle adapterState = new Bundle();

    adapter.onSaveInstanceState(adapterState);
    state.putBundle(STATE_ADAPTER, adapterState);
}

From source file:com.github.nicktgn.mvp.MvpFragment.java

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

    MvpBundle savedData = presenter.saveState();
    if (savedData != null) {
        outState.putBundle(Constants.CACHED_STATE_DATA, savedData.getRealBundle());
    }//from  www . j a va2s  .c o m
}

From source file:com.fastbootmobile.encore.app.AlbumActivity.java

@Override
protected void onSaveInstanceState(Bundle outState) {
    super.onSaveInstanceState(outState);
    outState.putBundle(EXTRA_RESTORE_INTENT, mInitialIntent);
    Utils.queueBitmap(BITMAP_ALBUM_HERO, mHero);
}

From source file:org.anhonesteffort.flock.ManageSubscriptionActivity.java

@Override
public void onSaveInstanceState(Bundle savedInstanceState) {
    savedInstanceState.putBundle(KEY_DAV_ACCOUNT_BUNDLE, davAccount.toBundle());
    savedInstanceState.putInt(KEY_CURRENT_FRAGMENT, currentFragment);

    if (activityRequestCode.isPresent())
        savedInstanceState.putInt(KEY_REQUEST_CODE, activityRequestCode.get());

    if (activityResultCode.isPresent())
        savedInstanceState.putInt(KEY_RESULT_CODE, activityResultCode.get());

    if (activityResultData.isPresent())
        savedInstanceState.putParcelable(KEY_RESULT_DATA, activityResultData.get());

    super.onSaveInstanceState(savedInstanceState);
}

From source file:org.opensilk.music.library.LibraryConfig.java

public Bundle dematerialize() {
    Bundle b = new Bundle(4);
    b.putInt("_1", apiVersion);
    b.putInt("_2", capabilities);
    b.putParcelable("_3", pickerComponent);
    b.putBundle("_4", meta);
    b.putString("_5", authority);
    return b;//from   w w w .j  a  va2  s . c o m
}

From source file:bbct.android.common.activity.BaseballCardList.java

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

    outState.putBundle(FILTER_PARAMS, this.filterParams);
}

From source file:org.wahtod.wififixer.ui.AboutFragment.java

@Override
public void onSaveInstanceState(Bundle outState) {
    super.onSaveInstanceState(outState);
    if (mNetwork != null)
        outState.putBundle(NETWORK_KEY, mNetwork.toBundle());
}

From source file:com.checktipsplitter.ui.FragmentAddBill.java

@Override
public void onSaveInstanceState(Bundle outState) {
    super.onSaveInstanceState(outState);
    outState.putBundle("model", mWizardModel.save());
}

From source file:com.facebook.android.FacebookClient.java

public void onSaveInstanceState(Bundle outState) {
    Bundle b = new Bundle();
    b.putInt("mAuthActivityCode", mAuthActivityCode);
    b.putStringArray("mAuthPermissions", mAuthPermissions);
    outState.putBundle("facebookclient", b);
}

From source file:com.cse3310.phms.ui.activities.BaseWizardPagerActivity.java

@Override
protected void onSaveInstanceState(Bundle outState) {
    super.onSaveInstanceState(outState);
    outState.putBundle("model", mWizardModel.save());
}