List of usage examples for android.os Bundle putLongArray
public void putLongArray(@Nullable String key, @Nullable long[] value)
From source file:com.google.android.apps.mytracks.fragments.ConfirmDeleteDialogFragment.java
/** * Create a new instance./*from ww w . ja va 2 s. c om*/ * * @param trackIds list of track ids to delete. To delete all, set to size 1 * with trackIds[0] == -1L */ public static ConfirmDeleteDialogFragment newInstance(long[] trackIds) { Bundle bundle = new Bundle(); bundle.putLongArray(KEY_TRACK_IDS, trackIds); ConfirmDeleteDialogFragment deleteTrackDialogFragment = new ConfirmDeleteDialogFragment(); deleteTrackDialogFragment.setArguments(bundle); return deleteTrackDialogFragment; }
From source file:br.com.bioscada.apps.biotracks.fragments.DeleteMarkerDialogFragment.java
public static DeleteMarkerDialogFragment newInstance(long[] markerIds) { Bundle bundle = new Bundle(); bundle.putLongArray(KEY_MARKER_IDS, markerIds); DeleteMarkerDialogFragment deleteMarkerDialogFragment = new DeleteMarkerDialogFragment(); deleteMarkerDialogFragment.setArguments(bundle); return deleteMarkerDialogFragment; }
From source file:com.andrew.apollo.menu.AddToPlaylistDialog.java
public static AddToPlaylistDialog newInstance(long[] playlist) { Bundle b = new Bundle(); b.putLongArray("playlist_list", playlist); AddToPlaylistDialog f = new AddToPlaylistDialog(); f.setArguments(b);/*from w w w . ja v a 2 s. c o m*/ return f; }
From source file:com.koma.music.playlist.NewPlaylistDialog.java
public static NewPlaylistDialog newInstance(long[] songList) { NewPlaylistDialog dialog = new NewPlaylistDialog(); Bundle bundle = new Bundle(); bundle.putLongArray("songs", songList); dialog.setArguments(bundle);//w ww. j ava 2 s. c o m return dialog; }
From source file:me.diskstation.ammon.gpsrunner.ui.DetailsMapFragment.java
/** * Use this factory method to create a new instance of * this fragment using the provided parameters. * * @param runIds Array of IDs of runs which should be displayed. * @return A new instance of fragment DetailsMapFragment. *//*from w ww .j av a 2s . c om*/ public static DetailsMapFragment newInstance(long[] runIds) { DetailsMapFragment fragment = new DetailsMapFragment(); Bundle args = new Bundle(); args.putLongArray(ARG_RUNIDS, runIds); fragment.setArguments(args); return fragment; }
From source file:com.andrew.apollo.menu.DeleteDialog.java
/** * @param title The title of the artist, album, or song to delete * @param items The item(s) to delete//from w w w . java2 s. co m * @param key The key used to remove items from the cache. * @return A new instance of the dialog */ public static DeleteDialog newInstance(final String title, final long[] items, final String key) { final DeleteDialog frag = new DeleteDialog(); final Bundle args = new Bundle(); args.putString(Config.NAME, title); args.putLongArray("items", items); args.putString("cachekey", key); frag.setArguments(args); return frag; }
From source file:com.andrew.apollo.menu.CreateNewPlaylist.java
/** * @param list The list of tracks to add to the playlist * @return A new instance of this dialog. *//*from w w w . ja v a2 s .c o m*/ public static CreateNewPlaylist getInstance(final long[] list) { final CreateNewPlaylist frag = new CreateNewPlaylist(); final Bundle args = new Bundle(); args.putLongArray("playlist_list", list); frag.setArguments(args); return frag; }
From source file:me.diskstation.ammon.gpsrunner.ui.RunDetailsFragment.java
/** * Use this factory method to create a new instance of * this fragment using the provided parameters. * * @param runIds long array of runIds/* w ww. j av a 2 s . com*/ * @return A new instance of fragment RunDetailsFragment. */ public static RunDetailsFragment newInstance(long[] runIds) { RunDetailsFragment fragment = new RunDetailsFragment(); Bundle args = new Bundle(); args.putLongArray(ARG_RUNIDS, runIds); fragment.setArguments(args); return fragment; }
From source file:cn.studyjams.s2.sj0132.bowenyan.mygirlfriend.nononsenseapps.notepad.ui.common.DialogMoveToList.java
public static DialogMoveToList getInstance(final Collection<Long> taskIds) { DialogMoveToList dialog = new DialogMoveToList(); Bundle args = new Bundle(); // To array fixes threading issues args.putLongArray(TASK_IDS, ArrayHelper.toArray(taskIds)); dialog.setArguments(args);//w w w . ja v a 2 s . co m return dialog; }
From source file:id.nci.stm_9.SelectPublicKeyFragment.java
/** * Creates new instance of this fragment *///from ww w . ja v a2s . c o m public static SelectPublicKeyFragment newInstance(long[] preselectedKeyIds) { SelectPublicKeyFragment frag = new SelectPublicKeyFragment(); Bundle args = new Bundle(); args.putLongArray(ARG_PRESELECTED_KEY_IDS, preselectedKeyIds); frag.setArguments(args); return frag; }