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:Main.java

public static void putDate(Bundle bundle, String key, Date date) {
    bundle.putLong(key, date.getTime());
}

From source file:Main.java

static void putDate(Bundle bundle, String key, Date date) {
    bundle.putLong(key, date.getTime());
}

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

public static SteigInfoFragment create(long id) {
    SteigInfoFragment f = new SteigInfoFragment();
    Bundle b = new Bundle();
    b.putLong("id", id);
    f.setArguments(b);//from  ww  w.  ja va 2s .c  o  m
    return f;
}

From source file:com.abcvoipsip.ui.account.AccountEditFragment.java

public static AccountEditFragment newInstance(long profileId) {
    AccountEditFragment f = new AccountEditFragment();

    // Supply index input as an argument.
    Bundle args = new Bundle();
    args.putLong(SipProfile.FIELD_ID, profileId);
    f.setArguments(args);/* w  w  w .j a v  a  2 s .c  o m*/

    return f;
}

From source file:com.collabora.xwperf.notxw_contacts.fragments.DatePickerFragment.java

public static DatePickerFragment newInstance(Date initDate) {
    DatePickerFragment f = new DatePickerFragment();
    Bundle args = new Bundle();
    args.putLong(EXTRA_INIT_DATE, initDate == null ? new Date().getTime() : initDate.getTime());
    f.setArguments(args);/*  ww w.  j  av a  2  s . com*/
    return f;
}

From source file:com.cnm.cnmrc.fragment.RcFourWay.java

public static RcFourWay newInstance(long num) {
    RcFourWay f = new RcFourWay();
    Bundle args = new Bundle();
    args.putLong("num", num);
    f.setArguments(args);// w w  w .j a  va2s  .  c o  m
    return f;
}

From source file:com.cnm.cnmrc.fragment.vod.VodMain.java

public static VodMain newInstance(long num) {
    VodMain f = new VodMain();
    Bundle args = new Bundle();
    args.putLong("num", num);
    f.setArguments(args);//from w w  w. ja va  2s . com
    return f;
}

From source file:Main.java

private static void putLong(Bundle icicle, String key, Long value) {
    if (value != null)
        icicle.putLong(key, value);
}

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

public static void showDialog(final FragmentManager fm, final long taskId,
        final DialogConfirmedListener listener) {
    DialogDeleteTask d = new DialogDeleteTask();
    d.setListener(listener);//from  w w w.  j  a  v a2 s. c  om
    Bundle args = new Bundle();
    args.putLong(ID, taskId);
    d.setArguments(args);
    d.show(fm, TAG);
}

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

public static void showDialog(final FragmentManager fm, final long listId,
        final DialogConfirmedListener listener) {
    DialogDeleteList d = new DialogDeleteList();
    d.setListener(listener);// w ww .  ja  va2  s .com
    Bundle args = new Bundle();
    args.putLong(ID, listId);
    d.setArguments(args);
    d.show(fm, TAG);
}