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:org.opensilk.music.ui3.common.BundleableFragment.java

protected static Bundle makeCommonArgsBundle(Bundle config, LibraryInfo info) {
    Bundle b = new Bundle();
    b.putBundle("config", config);
    b.putParcelable("info", info);
    return b;/*  w w w.  j av  a  2 s  .c  om*/
}

From source file:pl.selvin.android.listsyncsample.app.DatePickerFragment.java

public static DatePickerFragment newInstance(Calendar date, Bundle userData) {
    DatePickerFragment f = new DatePickerFragment();
    Bundle args = new Bundle();
    args.putBundle(UserDataArg, userData);
    args.putSerializable(CalendarArg, date);
    f.setArguments(args);/*from   w  w  w.java  2  s. c  om*/
    return f;
}

From source file:pl.selvin.android.listsyncsample.app.TimePickerFragment.java

public static TimePickerFragment newInstance(Calendar date, Bundle userData) {
    TimePickerFragment f = new TimePickerFragment();
    Bundle args = new Bundle();
    args.putBundle(UserDataArg, userData);
    args.putSerializable(CalendarArg, date);
    f.setArguments(args);//from   w  w  w .jav  a2  s  .  com
    return f;
}

From source file:com.cnm.cnmrc.fragment.search.SearchVodDetail.java

public static SearchVodDetail newInstance(Bundle bundle) {
    SearchVodDetail f = new SearchVodDetail();
    Bundle args = new Bundle();
    args.putBundle("bundle", bundle);
    f.setArguments(args);/*from ww w  . j  ava  2 s .com*/
    return f;
}

From source file:ru.tinkoff.acquiring.sdk.ThreeDsFragment.java

public static ThreeDsFragment newInstance(Bundle threeDSBundle) {
    ThreeDsFragment fragment = new ThreeDsFragment();
    Bundle args = new Bundle();
    args.putBundle(EXTRA_3DS, threeDSBundle);
    fragment.setArguments(args);//from w ww. j av a  2s. c  o m
    return fragment;
}

From source file:com.google.sample.castcompanionlibrary.cast.tracks.ui.TracksChooserDialog.java

/**
 * Call this static method to create a new instance of the dialog.
 *//*from  w ww . j av  a2 s  .co  m*/
public static TracksChooserDialog newInstance(MediaInfo mediaInfo) {
    TracksChooserDialog fragment = new TracksChooserDialog();
    Bundle bundle = new Bundle();
    bundle.putBundle(VideoCastManager.EXTRA_MEDIA, Utils.fromMediaInfo(mediaInfo));
    fragment.setArguments(bundle);
    return fragment;
}

From source file:com.google.android.libraries.cast.companionlibrary.cast.tracks.ui.TracksChooserDialog.java

/**
 * Call this static method to create a new instance of the dialog.
 *//*from  w w  w .  j  a v  a 2s . co  m*/
public static TracksChooserDialog newInstance(MediaInfo mediaInfo) {
    TracksChooserDialog fragment = new TracksChooserDialog();
    Bundle bundle = new Bundle();
    bundle.putBundle(VideoCastManager.EXTRA_MEDIA, Utils.mediaInfoToBundle(mediaInfo));
    fragment.setArguments(bundle);
    return fragment;
}

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

public static BaseballCardList getInstance(Bundle filterArgs) {
    BaseballCardList cardList = new BaseballCardList();

    Bundle args = new Bundle();
    args.putBundle(FILTER_PARAMS, filterArgs);
    cardList.setArguments(args);/*w  ww  .  ja  v  a2 s  .  c  o  m*/

    return cardList;
}

From source file:org.droid2droid.ui.connect.ConnectDialogFragment.java

public static final ConnectDialogFragment newTryConnectFragment(int flags, String[] uris, Bundle params) {
    ConnectDialogFragment fragment = new ConnectDialogFragment();
    Bundle bundle = new Bundle();
    bundle.putStringArray(KEY_URIS, uris);
    bundle.putBundle(KEY_BUNDLE, params);
    bundle.putInt(KEY_FLAGS, flags);//from  ww  w  .  j a  v a 2s  . co  m
    fragment.setArguments(bundle);
    return fragment;
}

From source file:com.jefftharris.passwdsafe.view.ConfirmPromptDialog.java

/**
 * Create a new instance//  w ww . jav  a 2  s. c  o  m
 */
public static ConfirmPromptDialog newInstance(String title, String prompt, String confirm, Bundle confirmArgs) {
    ConfirmPromptDialog dialog = new ConfirmPromptDialog();
    Bundle args = new Bundle();
    args.putString("title", title);
    args.putString("prompt", prompt);
    args.putString("confirm", confirm);
    args.putBundle("confirmArgs", confirmArgs);
    dialog.setArguments(args);
    return dialog;
}