Example usage for android.os Bundle putSerializable

List of usage examples for android.os Bundle putSerializable

Introduction

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

Prototype

@Override
public void putSerializable(@Nullable String key, @Nullable Serializable value) 

Source Link

Document

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

Usage

From source file:com.emolabs.im.emoji.EmojiconGridFragment.java

protected static EmojiconGridFragment newInstance(Emojicon[] emojicons) {
    EmojiconGridFragment emojiGridFragment = new EmojiconGridFragment();
    Bundle args = new Bundle();
    args.putSerializable("emojicons", emojicons);
    emojiGridFragment.setArguments(args);
    return emojiGridFragment;
}

From source file:com.github.vase4kin.teamcityapp.artifact.view.ArtifactListFragment.java

public static ArtifactListFragment newInstance(Build build, String url) {
    ArtifactListFragment fragment = new ArtifactListFragment();
    Bundle args = new Bundle();
    args.putSerializable(BundleExtractorValues.BUILD, build);
    args.putString(BundleExtractorValues.URL, url);
    fragment.setArguments(args);//from  ww w .j a v a2s. co  m
    return fragment;
}

From source file:com.github.vase4kin.teamcityapp.overview.view.OverviewFragment.java

public static OverviewFragment newInstance(Build build) {
    OverviewFragment fragment = new OverviewFragment();
    Bundle args = new Bundle();
    args.putSerializable(BundleExtractorValues.BUILD, build);
    fragment.setArguments(args);//from   ww  w. ja  v a  2  s  .co  m
    return fragment;
}

From source file:com.m2dl.mini_projet.mini_projet_android.fragment.TagSelectDialogFragment.java

public static TagSelectDialogFragment newInstance(List<Tag> allTags, List<Tag> selectedTags) {
    TagSelectDialogFragment fragment = new TagSelectDialogFragment();
    Bundle args = new Bundle();
    args.putSerializable(ARG_ALL_TAGS, (ArrayList) allTags);
    args.putSerializable(ARG_SELECTED_TAGS, (ArrayList) selectedTags);
    fragment.setArguments(args);//from w w w .  j ava 2 s. c  o m
    return fragment;
}

From source file:com.chatwing.whitelabel.fragments.EmoticonsFragment.java

public static EmoticonsFragment newInstance(Emoticon[] emoticons) {
    EmoticonsFragment instance = new EmoticonsFragment();

    Bundle args = new Bundle();
    args.putSerializable(EXTRA_EMOTICONS, emoticons);
    instance.setArguments(args);// ww  w.  j av  a  2s.  co m

    return instance;
}

From source file:com.github.yuukis.businessmap.app.ContactsItemsDialogFragment.java

public static ContactsItemsDialogFragment newInstance(List<ContactsItem> contactsList) {
    ContactsItemsDialogFragment dialogFragment = new ContactsItemsDialogFragment();
    Bundle args = new Bundle();
    args.putSerializable(KEY_CONTACTS_ITEMS, (Serializable) contactsList);
    dialogFragment.setArguments(args);//from w  ww.  jav  a 2  s. com
    return dialogFragment;
}

From source file:com.google.reviewit.AbandonFragment.java

public static AbandonFragment create(Class<? extends Fragment> origin) {
    AbandonFragment fragment = new AbandonFragment();
    Bundle bundle = new Bundle();
    bundle.putSerializable(ORIGIN, origin);
    fragment.setArguments(bundle);/*from  w  w w.j a  va2 s . co m*/
    return fragment;
}

From source file:com.google.reviewit.RestoreFragment.java

public static RestoreFragment create(Class<? extends Fragment> origin) {
    RestoreFragment fragment = new RestoreFragment();
    Bundle bundle = new Bundle();
    bundle.putSerializable(ORIGIN, origin);
    fragment.setArguments(bundle);// w w w. j  a v  a  2 s  .c  om
    return fragment;
}

From source file:at.jclehner.rxdroid.DatePickerFragment.java

public static DatePickerFragment newInstance(Date date, OnDateSetListener listener) {
    final DatePickerFragment r = new DatePickerFragment(listener);
    final Bundle args = new Bundle();
    args.putSerializable(ARG_DATE, date);
    r.setArguments(args);//from  w  w w  . ja  v  a  2  s .com
    return r;
}

From source file:com.chatwing.whitelabel.fragments.ColorPickerDialogFragment.java

public static ColorPickerDialogFragment newInstance(Serializable tag) {
    ColorPickerDialogFragment instance = new ColorPickerDialogFragment();
    Bundle args = new Bundle();
    args.putSerializable(EXTRA_TAG, tag);
    instance.setArguments(args);/*from   w  w w . ja v a2 s  .  c  o m*/
    return instance;
}