Example usage for android.os Bundle putLong

List of usage examples for android.os Bundle putLong

Introduction

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

Prototype

public void putLong(@Nullable String key, long value) 

Source Link

Document

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

Usage

From source file:com.bluros.music.fragments.SimilarArtistFragment.java

public static SimilarArtistFragment newInstance(long id) {
    SimilarArtistFragment fragment = new SimilarArtistFragment();
    Bundle args = new Bundle();
    args.putLong(Constants.ARTIST_ID, id);
    fragment.setArguments(args);/* www.ja v  a  2s  .  c om*/
    return fragment;
}

From source file:cn.studyjams.s2.sj0132.bowenyan.mygirlfriend.nononsenseapps.notepad.ui.common.DialogDeleteCompletedTasks.java

public static void showDialog(final FragmentManager fm, final long listId,
        final DialogConfirmedListener listener) {
    DialogDeleteCompletedTasks d = new DialogDeleteCompletedTasks();
    d.setListener(listener);/*from  ww w .  j  av a2  s. co m*/
    Bundle args = new Bundle();
    args.putLong(ID, listId);
    d.setArguments(args);
    d.show(fm, TAG);
}

From source file:com.google.android.apps.mytracks.fragments.DeleteOneMarkerDialogFragment.java

public static DeleteOneMarkerDialogFragment newInstance(long markerId, long trackId) {
    Bundle bundle = new Bundle();
    bundle.putLong(KEY_MARKER_ID, markerId);
    bundle.putLong(KEY_TRACK_ID, trackId);

    DeleteOneMarkerDialogFragment deleteOneMarkerDialogFragment = new DeleteOneMarkerDialogFragment();
    deleteOneMarkerDialogFragment.setArguments(bundle);
    return deleteOneMarkerDialogFragment;
}

From source file:com.mintplex.oeffioptimizer.HaltestellenFragment.java

public static HaltestellenFragment create(long id) {
    HaltestellenFragment f = new HaltestellenFragment();
    Bundle b = new Bundle();
    b.putLong("ID", id);
    f.setArguments(b);/* w  w w  . ja v a 2  s  .c  om*/
    return f;
}

From source file:com.bluros.music.fragments.ArtistMusicFragment.java

public static ArtistMusicFragment newInstance(long id) {
    ArtistMusicFragment fragment = new ArtistMusicFragment();
    Bundle args = new Bundle();
    args.putLong(Constants.ARTIST_ID, id);
    fragment.setArguments(args);/* w  ww.ja  va2 s .c  om*/
    return fragment;
}

From source file:com.mintplex.oeffioptimizer.AbfahrtenFragment.java

public static Fragment create(long id) {
    AbfahrtenFragment f = new AbfahrtenFragment();
    Bundle b = new Bundle();
    b.putLong("id", id);
    f.setArguments(b);/*from w w w.jav  a 2  s  .  co m*/
    return f;
}

From source file:com.adkdevelopment.movieslist.ui.TimeDialog.java

public static TimeDialog newInstance(long time) {
    TimeDialog timeDialog = new TimeDialog();
    Bundle args = new Bundle();
    args.putLong(DialogService.CUR_TIME, time);
    timeDialog.setArguments(args);//from www. j a  v a2 s  .c  om
    return timeDialog;
}

From source file:com.lambdasoup.quickfit.ui.TimeDialogFragment.java

public static TimeDialogFragment newInstance(long scheduleId, int oldHour, int oldMinute) {
    TimeDialogFragment fragment = new TimeDialogFragment();
    Bundle args = new Bundle();
    args.putLong(KEY_SCHEDULE_ID, scheduleId);
    args.putInt(KEY_OLD_HOUR, oldHour);/* www . j  av  a  2s .c o  m*/
    args.putInt(KEY_OLD_MINUTE, oldMinute);
    fragment.setArguments(args);
    return fragment;
}

From source file:com.bluros.music.fragments.ArtistBioFragment.java

public static ArtistBioFragment newInstance(long id) {
    ArtistBioFragment fragment = new ArtistBioFragment();
    Bundle args = new Bundle();
    args.putLong(Constants.ARTIST_ID, id);
    fragment.setArguments(args);//from   ww  w .j a v  a  2s.c  o m
    return fragment;
}

From source file:com.andryr.musicplayer.fragments.GenreFragment.java

public static GenreFragment newInstance(Genre genre) {

    Bundle args = new Bundle();
    args.putLong(PARAM_GENRE_ID, genre.getId());

    GenreFragment fragment = new GenreFragment();
    fragment.setArguments(args);/*  w  ww  . ja v  a  2  s .c  o  m*/

    return fragment;
}