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.cyanogenmod.account.ui.SetupWizardActivity.java

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

From source file:pl.openrnd.managers.fragmentsswapper.FragmentDescriptorImpl.java

/**
 * Method must be called in onSaveInstanceState() method of holding fragment.
 *
 * @see android.support.v4.app.Fragment// w  w w .  ja  v  a  2s.c om
 *
 * @param outState Bundle to store saved state.
 */
public void onSaveInstanceState(Bundle outState) {
    if (outState != null) {
        if (mResultCode != null) {
            outState.putInt(DATA_RESULT_CODE, mResultCode);
        }

        if (mResultData != null) {
            outState.putBundle(DATA_RESULT_BUNDLE, mResultData);
        }
    }
}

From source file:com.near.chimerarevo.activities.PostContainerActivity.java

@Override
public void onSaveInstanceState(Bundle savedInstanceState) {
    savedInstanceState.putBundle("arguments", args);
    super.onSaveInstanceState(savedInstanceState);
}

From source file:com.cnm.cnmrc.fragment.vodtvch.VodDetail.java

public VodDetail newInstance(int selectedCategory, String title, boolean isFirstDepth, Bundle bundle) {
    VodDetail f = new VodDetail();
    Bundle args = new Bundle();
    args.putBoolean("isFirstDepth", isFirstDepth);
    args.putBundle("bundle", bundle);
    f.setArguments(args);/*from  w  ww. ja  va2 s  . c  o m*/
    return f;
}

From source file:org.mariotaku.twidere.activity.DirectMessagesActivity.java

@Override
protected void onSaveInstanceState(Bundle outState) {
    outState.putLong(INTENT_KEY_ACCOUNT_ID, mAccountId);
    outState.putBundle(INTENT_KEY_DATA, mArguments);
    super.onSaveInstanceState(outState);
}

From source file:sg.fxl.topekaport.QuizFragment.java

@Override
public void onSaveInstanceState(Bundle outState) {
    View focusedChild = quizView.getFocusedChild();
    if (focusedChild instanceof ViewGroup) {
        View currentView = ((ViewGroup) focusedChild).getChildAt(0);
        if (currentView instanceof AbsQuizView) {
            outState.putBundle(KEY_USER_INPUT, ((AbsQuizView) currentView).getUserInput());
        }/*from  ww w .j a v  a2s  .c om*/
    }
    super.onSaveInstanceState(outState);
}

From source file:com.frostwire.android.gui.fragments.ImageViewerFragment.java

@Override
public void onSaveInstanceState(Bundle outState) {
    super.onSaveInstanceState(outState);
    outState.putBundle(EXTRA_FILE_DESCRIPTOR_BUNDLE, fd.toBundle());
    outState.putBoolean(EXTRA_IN_FULL_SCREEN_MODE, inFullScreenMode);
    outState.putInt(EXTRA_ADAPTER_FILE_OFFSET, position);
}

From source file:com.google.samples.apps.topeka.fragment.QuizFragment.java

@Override
public void onSaveInstanceState(Bundle outState) {
    View focusedChild = mQuizView.getFocusedChild();
    if (focusedChild instanceof ViewGroup) {
        View currentView = ((ViewGroup) focusedChild).getChildAt(0);
        if (currentView instanceof AbsQuizView) {
            outState.putBundle(KEY_USER_INPUT, ((AbsQuizView) currentView).getUserInput());
        }// ww  w .j  a v  a 2 s . c  om
    }
    super.onSaveInstanceState(outState);
}

From source file:com.hamsik2046.password.view.SingleInputFormActivity.java

@Override
public void onSaveInstanceState(Bundle outState) {
    super.onSaveInstanceState(outState);
    setupData = getCurrentStep().save(setupData);
    outState.putBundle(KEY_DATA, setupData);
    outState.putInt(KEY_STEP_INDEX, mStepIndex);
}

From source file:li.barter.fragments.ChatDetailsFragment.java

@Override
public void onSaveInstanceState(final Bundle outState) {
    super.onSaveInstanceState(outState);
    outState.putBundle(Keys.USER_INFO, mUserInfo);
}