Example usage for android.os Bundle putStringArrayList

List of usage examples for android.os Bundle putStringArrayList

Introduction

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

Prototype

@Override
public void putStringArrayList(@Nullable String key, @Nullable ArrayList<String> value) 

Source Link

Document

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

Usage

From source file:com.commonsware.android.anim.threepane.SimpleListFragment.java

public static SimpleListFragment newInstance(ArrayList<String> contents) {
    SimpleListFragment result = new SimpleListFragment();
    Bundle args = new Bundle();

    args.putStringArrayList(KEY_CONTENTS, contents);
    result.setArguments(args);/*ww  w . jav a2  s. c o m*/

    return (result);
}

From source file:com.auth0.lock.fragment.SmallSocialListFragment.java

public static SmallSocialListFragment newFragment(ArrayList<String> services) {
    Bundle arguments = new Bundle();
    arguments.putStringArrayList(SOCIAL_FRAGMENT_STRATEGIES_ARGUMENT, services);
    SmallSocialListFragment fragment = new SmallSocialListFragment();
    fragment.setArguments(arguments);//  ww  w .  ja  va2 s.c om
    return fragment;
}

From source file:com.tomra.stores.SimpleListFragment.java

public static SimpleListFragment newInstance(ArrayList<String> contents, Context c) {
    SimpleListFragment result = new SimpleListFragment();
    Bundle args = new Bundle();

    args.putStringArrayList(KEY_CONTENTS, contents);
    result.setArguments(args);//from  w  w  w  .j a  va  2  s.c  o m

    context = c;

    return (result);
}

From source file:org.lunci.dumbthing.dialog.CalendarDialog.java

public static CalendarDialog newInstance(ArrayList<String> availableDates) {
    final CalendarDialog dialog = new CalendarDialog();
    final Bundle bundle = new Bundle();
    bundle.putStringArrayList(EXTRA_DATES, availableDates);
    dialog.setArguments(bundle);//from   ww  w .j  a va  2  s  .  c  o m
    return dialog;
}

From source file:com.dimasdanz.kendalipintu.usermodel.UserDialogManager.java

public static UserDialogManager newInstance(ArrayList<String> data) {
    UserDialogManager f = new UserDialogManager();
    Bundle args = new Bundle();
    if (data != null) {
        args.putStringArrayList("data", data);
    }/*from  w ww  . ja  v  a  2  s .c  o m*/
    f.setArguments(args);
    return f;
}

From source file:com.undatech.opaque.dialogs.SelectTextElementFragment.java

public static SelectTextElementFragment newInstance(String title, ArrayList<String> strings,
        OnFragmentDismissedListener dismissalListener) {
    android.util.Log.e(TAG, "newInstance called");
    SelectTextElementFragment f = new SelectTextElementFragment(dismissalListener);

    Bundle args = new Bundle();
    args.putStringArrayList("strings", strings);
    args.putString("title", title);
    f.setArguments(args);//from   w  w w.  ja  v  a2  s  .  c o m
    f.setRetainInstance(true);

    return f;
}

From source file:com.undatech.opaque.SelectTextElementFragment.java

static SelectTextElementFragment newInstance(String title, ArrayList<String> strings,
        OnFragmentDismissedListener dismissalListener) {
    android.util.Log.e(TAG, "newInstance called");
    SelectTextElementFragment f = new SelectTextElementFragment(dismissalListener);

    Bundle args = new Bundle();
    args.putStringArrayList("strings", strings);
    args.putString("title", title);
    f.setArguments(args);// ww w. j  a va 2s. co  m
    f.setRetainInstance(true);

    return f;
}

From source file:com.urbantamil.projmadurai.TamilInfoFragment.java

public static TamilInfoFragment newInstance(ArrayList<String> author, ArrayList<String> genre) {
    TamilInfoFragment fragment = new TamilInfoFragment();
    Bundle args = new Bundle();
    args.putStringArrayList(ARG_AUTHOR, author);
    args.putStringArrayList(ARG_GENRE, genre);
    fragment.setArguments(args);/*from ww w .ja v  a2  s  . c om*/
    return fragment;
}

From source file:net.reichholf.dreamdroid.fragment.dialogs.MultiChoiceDialog.java

public static MultiChoiceDialog newInstance(int titleId, CharSequence[] items, boolean[] checkedItems,
        int positiveStringId, int negativeStringId) {

    MultiChoiceDialog fragment = new MultiChoiceDialog();
    Bundle args = new Bundle();
    args.putInt(KEY_TITLE_ID, titleId);/*  w ww .j a va2s. co  m*/
    args.putStringArrayList(KEY_ITEMS, BundleHelper.toStringArrayList(items));
    args.putBooleanArray(KEY_CHECKED_ITEMS, checkedItems);
    args.putInt(KEY_POSITIVE_STRING_ID, positiveStringId);
    fragment.setArguments(args);
    return fragment;
}

From source file:io.imoji.sdk.editor.fragment.CreateTaskFragment.java

public static CreateTaskFragment newInstance(ArrayList<String> tags, boolean createOutlineBitmap) {
    CreateTaskFragment f = new CreateTaskFragment();
    Bundle args = new Bundle();
    args.putStringArrayList(TAGS_BUNDLE_ARG_KEY, tags);
    args.putBoolean(CREATE_OUTLINE_BITMAP_BUNDLE_ARG_KEY, createOutlineBitmap);
    f.setArguments(args);//  ww  w  .java2s.com
    return f;
}