List of usage examples for android.os Bundle putSerializable
@Override public void putSerializable(@Nullable String key, @Nullable Serializable value)
From source file:com.donal.superne.app.ui.chat.emojicon.EmojiconGridFragment.java
protected static EmojiconGridFragment newInstance(Emojicon[] emojicons, OnEmojiconClickedListener listener) { EmojiconGridFragment emojiGridFragment = new EmojiconGridFragment(); Bundle args = new Bundle(); args.putSerializable("emojicons", emojicons); emojiGridFragment.setArguments(args); emojiGridFragment.mOnEmojiconClickedListener = listener; return emojiGridFragment; }
From source file:com.krossovochkin.kwitter.fragments.MainFragment.java
public static MainFragment newInstance(Twitter twitter) { MainFragment fragment = new MainFragment(); Bundle bundle = new Bundle(); bundle.putSerializable(Constants.TWITTER_KEY, twitter); fragment.setArguments(bundle);// ww w .j ava 2s. c o m return fragment; }
From source file:com.criticalblue.android.astropiks.PhotoDetailFragment.java
public static PhotoDetailFragment newInstance(UUID photoId) { Bundle args = new Bundle(); args.putSerializable(ARG_POD_ID, photoId); PhotoDetailFragment fragment = new PhotoDetailFragment(); fragment.setArguments(args);/*from w w w . j av a 2s .com*/ return fragment; }
From source file:com.kaliturin.blacklist.fragments.GetContactsFragment.java
public static void show(Fragment parent, ContactSourceType sourceType, boolean singleNumberMode) { Context context = parent.getContext(); // check permission final String permission = ContactsAccessHelper.getPermission(sourceType); if (permission == null || Permissions.notifyIfNotGranted(context, permission)) { return;// w w w. j ava 2 s. com } // create fragment's args Bundle arguments = new Bundle(); arguments.putSerializable(SOURCE_TYPE, sourceType); arguments.putBoolean(SINGLE_NUMBER_MODE, singleNumberMode); // open the dialog activity with the fragment CustomFragmentActivity.show(context, parent, getTitleId(context, sourceType), GetContactsFragment.class, arguments, 0); }
From source file:cn.zhangls.android.weibo.ui.weibo.SwipeRefreshFragment.java
public static SwipeRefreshFragment newInstance(WeiboFragment.WeiboListType weiboListType) { SwipeRefreshFragment weiboFragment = new SwipeRefreshFragment(); Bundle bundle = new Bundle(); bundle.putSerializable(WEIBO_LIST_TYPE, weiboListType); weiboFragment.setArguments(bundle);//www . j a v a 2 s. c o m return weiboFragment; }
From source file:at.alladin.rmbt.android.terms.RMBTTermsCheckFragment.java
public static RMBTTermsCheckFragment newInstance(final CheckType followedBy) { final RMBTTermsCheckFragment f = new RMBTTermsCheckFragment(); final Bundle bdl = new Bundle(1); bdl.putSerializable("followedByType", followedBy); f.setArguments(bdl);/*w ww . ja v a 2 s. c o m*/ return f; }
From source file:com.github.rutvijkumar.twittfuse.fragments.ProfileImageViewFragment.java
public static ProfileImageViewFragment newInstance(User user) { ProfileImageViewFragment fragment = new ProfileImageViewFragment(); Bundle args = new Bundle(); args.putSerializable("EXTRA_USER_OBJ", user); fragment.setArguments(args);/* ww w. j a v a2 s.co m*/ return fragment; }
From source file:com.appdynamics.demo.gasp.fragment.RestaurantDialogFragment.java
public static RestaurantDialogFragment newInstance(String title, Restaurant restaurant) { RestaurantDialogFragment frag = new RestaurantDialogFragment(); Bundle args = new Bundle(); args.putString("title", title); args.putSerializable("restaurant", restaurant); frag.setArguments(args);/*from w w w .j av a2 s .co m*/ return frag; }
From source file:com.misczak.joinmybridge.CallDialogFragment.java
public static CallDialogFragment newInstance(UUID bridgeId) { CallDialogFragment fragment = new CallDialogFragment(); Bundle args = new Bundle(); args.putSerializable(EXTRA_BRIDGE_ID, bridgeId); fragment.setArguments(args);/*from w w w .j av a 2 s. co m*/ return fragment; }
From source file:com.microsoft.office365.meetingfeedback.view.RateMyMeetingsDialogFragment.java
public static RateMyMeetingsDialogFragment newInstance(String title, String message, DialogConfig.DialogType dialogType) { Bundle args = new Bundle(); DialogConfig dialogConfig = new DialogConfig(title, message, dialogType); args.putSerializable(ARG_DIALOG_CONFIG, dialogConfig); RateMyMeetingsDialogFragment fragment = new RateMyMeetingsDialogFragment(); fragment.setArguments(args);//from w w w . ja va2 s. com return fragment; }