List of usage examples for android.os Bundle putStringArrayList
@Override public void putStringArrayList(@Nullable String key, @Nullable ArrayList<String> value)
From source file:com.facebook.share.internal.LegacyNativeDialogParameters.java
private static Bundle create(SharePhotoContent photoContent, List<String> imageUrls, boolean dataErrorsFatal) { Bundle params = createBaseParameters(photoContent, dataErrorsFatal); params.putStringArrayList(ShareConstants.LEGACY_PHOTOS, new ArrayList<>(imageUrls)); return params; }
From source file:com.facebook.share.internal.NativeDialogParameters.java
private static Bundle create(SharePhotoContent photoContent, List<String> imageUrls, boolean dataErrorsFatal) { Bundle params = createBaseParameters(photoContent, dataErrorsFatal); params.putStringArrayList(ShareConstants.PHOTOS, new ArrayList<>(imageUrls)); return params; }
From source file:im.vector.fragments.VectorUserGroupsDialogFragment.java
public static VectorUserGroupsDialogFragment newInstance(String sessionId, String userId, List<String> groupIds) { VectorUserGroupsDialogFragment f = new VectorUserGroupsDialogFragment(); Bundle args = new Bundle(); args.putString(ARG_SESSION_ID, sessionId); args.putString(ARG_USER_ID, userId); args.putStringArrayList(ARG_GROUPS_ID, new ArrayList<>(groupIds)); f.setArguments(args);/* w w w . ja va2 s . co m*/ return f; }
From source file:eu.trentorise.smartcampus.eb.fragments.experience.AssignCollectionFragment.java
public static Bundle prepare(String id, List<String> collections) { Bundle b = new Bundle(); b.putString(ARG_ID, id);// w w w. j av a2 s .c o m if (collections != null) { b.putStringArrayList(ARG_COLLS, new ArrayList<String>(collections)); } return b; }
From source file:com.madgag.agit.LogFragment.java
public static LogFragment newInstance(File gitdir, List<String> untilRevs, @Nullable String path) { LogFragment f = new LogFragment(); Bundle args = new Bundle(); args.putString(GITDIR, gitdir.getAbsolutePath()); args.putStringArrayList(UNTIL_REVS, newArrayList(untilRevs)); args.putString(PATH, path);/*from www . j a v a2 s . c o m*/ f.setArguments(args); return f; }
From source file:org.cvasilak.jboss.mobile.app.fragments.util.ListEditorFragment.java
public static ListEditorFragment newInstance(ArrayList<String> list, boolean isNumber, String placeHolder) { ListEditorFragment f = new ListEditorFragment(); Bundle args = new Bundle(); args.putStringArrayList("list", list); args.putBoolean("isNumber", isNumber); args.putString("placeHolder", placeHolder); f.setArguments(args);//w w w. jav a 2 s.c o m return f; }
From source file:com.popdeem.sdk.uikit.fragment.PDUITagFriendsFragment.java
public static PDUITagFriendsFragment newInstance(@NonNull TagFriendsConfirmedCallback callback, @NonNull ArrayList<String> taggedNames, @NonNull ArrayList<String> taggedIds) { Bundle args = new Bundle(); args.putStringArrayList("names", taggedNames); args.putStringArrayList("ids", taggedIds); PDUITagFriendsFragment fragment = new PDUITagFriendsFragment(); fragment.setConfirmCallback(callback); fragment.setArguments(args);/* w w w . j a va2s . c o m*/ return fragment; }
From source file:com.github.johnpersano.supertoasts.demo.fragments.AttributeRadioGroupFragment.java
/** * Returns a new instance of the {@link AttributeRadioGroupFragment}. * //from www . ja v a 2 s . com * @param title The title to be shown in the TabStrip * @param subtitle The large subtitle * @param summary A summary of the RadioGroup * @param array The selection options of the RadioGroup * * @return A new AttributeRadioGroupFragment */ public static AttributeRadioGroupFragment newInstance(String title, String subtitle, String summary, String[] array) { final AttributeRadioGroupFragment attributeRadioGroupFragment = new AttributeRadioGroupFragment(); final Bundle bundle = new Bundle(); bundle.putString(ARG_TITLE, title); bundle.putString(ARG_SUBTITLE, subtitle); bundle.putString(ARG_SUMMARY, summary); bundle.putStringArrayList(ARG_ARRAY, new ArrayList<>(Arrays.asList(array))); attributeRadioGroupFragment.setArguments(bundle); return attributeRadioGroupFragment; }
From source file:de.uni_weimar.m18.anatomiederstadt.element.QuizMulti.java
/** * Use this factory method to create a new instance of * this fragment using the provided parameters. * * @param param1 Parameter 1.//from w w w . j a v a 2 s . c om * @param param2 Parameter 2. * @return A new instance of fragment QuizMulti. */ // TODO: Rename and change types and number of parameters public static QuizMulti newInstance(ArrayList<String> options, ArrayList<String> correctList, String targetId, int points, String questionId) { QuizMulti fragment = new QuizMulti(); Bundle args = new Bundle(); args.putStringArrayList(ARG_PARAM1, options); args.putStringArrayList(ARG_PARAM2, correctList); args.putString(ARG_PARAM3, targetId); args.putInt(ARG_PARAM4, points); args.putString(ARG_PARAM5, questionId); fragment.setArguments(args); return fragment; }
From source file:com.lvstudio.wallpapers.naturalwallpapers.ScreenSlidePageFragment.java
/** * Factory method for this fragment class. Constructs a new fragment for the * given page number./*w w w.j a v a 2s .c o m*/ */ public static ScreenSlidePageFragment create(int pageNumber, ArrayList<String> argLstPhoto, ArrayList<String> argLstPhotoURL) { ScreenSlidePageFragment fragment = new ScreenSlidePageFragment(); Bundle args = new Bundle(); args.putInt(ARG_PAGE, pageNumber); args.putStringArrayList("listPhoto", argLstPhoto); args.putStringArrayList("listPhotoURL", argLstPhotoURL); fragment.setArguments(args); return fragment; }