List of usage examples for android.os Bundle putLong
public void putLong(@Nullable String key, long value)
From source file:com.rappsantiago.weighttracker.progress.AddEditProgressFragment.java
public static AddEditProgressFragment createFragment(long existingProgressId) { AddEditProgressFragment addEditProgressFragment = new AddEditProgressFragment(); Bundle args = new Bundle(); args.putLong(KEY_PROGRESS_ID, existingProgressId); addEditProgressFragment.setArguments(args); return addEditProgressFragment; }
From source file:com.ariesmcrae.mymemories.ui.story.StoryViewFragment.java
public static StoryViewFragment newInstance(long index) { StoryViewFragment f = new StoryViewFragment(); // Supply index input as an argument. Bundle args = new Bundle(); args.putLong(rowIdentifyerTAG, index); f.setArguments(args);/*from w w w . j a v a 2 s .co m*/ return f; }
From source file:com.ariesmcrae.mymemories.ui.story.EditStoryFragment.java
public static EditStoryFragment newInstance(long index) { EditStoryFragment f = new EditStoryFragment(); // Supply index input as an argument. Bundle args = new Bundle(); args.putLong(rowIdentifyerTAG, index); f.setArguments(args);/* w w w. j a va 2 s .co m*/ return f; }
From source file:cl.ipp.katbag.fragment.SlidePageBookFragment.java
public static SlidePageBookFragment create(long id_app, int pageNumber) { SlidePageBookFragment fragment = new SlidePageBookFragment(); Bundle args = new Bundle(); args.putLong(ID_APP, id_app); args.putInt(PAGE_NUMBER, pageNumber); fragment.setArguments(args);/*from ww w . ja v a2 s . co m*/ return fragment; }
From source file:com.iaraby.template.view.fragment.DetailsFrag.java
public static DetailsFrag createInstance(int position, long id, boolean isFav) { DetailsFrag instance = new DetailsFrag(); Bundle args = new Bundle(); args.putInt(Constants.PARAM_CAT_POS_TAG, position); args.putLong(Constants.PARAM_CAT_ID_TAG, id); args.putBoolean(Constants.PARAM_IS_FAV, isFav); instance.setArguments(args);// w ww .jav a2 s . c o m return instance; }
From source file:com.grokkingandroid.sampleapp.samples.data.contentprovider.lentitems.LentItemFormFragment.java
/** * Create a new instance of this fragment. * /* w w w .j av a 2s . c o m*/ * @param itemId The id of an item to edit. -1 for a new item. */ public static LentItemFormFragment newInstance(long itemId) { LentItemFormFragment f = new LentItemFormFragment(); Bundle bundle = new Bundle(); bundle.putLong(KEY_ITEM_ID, itemId); f.setArguments(bundle); return f; }
From source file:com.freshdigitable.udonroad.StatusDetailFragment.java
public static StatusDetailFragment getInstance(final long statusId) { Bundle args = new Bundle(); args.putLong("statusId", statusId); final StatusDetailFragment statusDetailFragment = new StatusDetailFragment(); statusDetailFragment.setArguments(args); return statusDetailFragment; }
From source file:com.popdeem.sdk.uikit.fragment.PDUIInboxMessageFragment.java
public static PDUIInboxMessageFragment newInstance(PDMessage message) { Bundle args = new Bundle(); args.putString("title", message.getTitle()); args.putString("body", message.getBody()); args.putString("sender", message.getSenderName()); args.putString("image", message.getImageUrl()); args.putLong("date", message.getCreatedAt()); PDUIInboxMessageFragment fragment = new PDUIInboxMessageFragment(); fragment.setArguments(args);/*from w w w .ja va 2 s . com*/ return fragment; }
From source file:br.com.bioscada.apps.biotracks.fragments.MarkerDetailFragment.java
public static MarkerDetailFragment newInstance(long markerId, String title) { Bundle bundle = new Bundle(); bundle.putLong(KEY_MARKER_ID, markerId); bundle.putString(KEY_TITLE, title);//from w w w. j a va 2s . c om MarkerDetailFragment fragment = new MarkerDetailFragment(); fragment.setArguments(bundle); return fragment; }
From source file:com.dabay6.android.apps.carlog.ui.vehicle.fragments.VehicleDetailFragment.java
/** * * @param id/* ww w.j a v a2s. co m*/ * @return */ public static VehicleDetailFragment newInstance(final Long id) { final Bundle arguments = new Bundle(); final VehicleDetailFragment fragment = new VehicleDetailFragment(); if (id != null) { arguments.putLong(PARAMS_ENTITY_ID, id); } fragment.setArguments(arguments); return fragment; }