Example usage for android.os Bundle putDouble

List of usage examples for android.os Bundle putDouble

Introduction

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

Prototype

public void putDouble(@Nullable String key, double value) 

Source Link

Document

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

Usage

From source file:com.vuw.project1.riverwatch.ui.History_ActivityFragment_Map.java

static History_ActivityFragment_Map newInstance(double latitude, double longitude) {
    History_ActivityFragment_Map fragment = new History_ActivityFragment_Map();
    Bundle bundle = new Bundle();
    bundle.putDouble("latitude", latitude);
    bundle.putDouble("longitude", longitude);
    fragment.setArguments(bundle);//w  w w  .  jav a 2s.co  m
    return fragment;
}

From source file:eu.geopaparazzi.library.core.dialogs.NoteDialogFragment.java

public static NoteDialogFragment newInstance(double lon, double lat, double elev) {
    NoteDialogFragment f = new NoteDialogFragment();
    Bundle args = new Bundle();
    args.putDouble(LONGITUDE, lon);
    args.putDouble(LATITUDE, lat);//from w ww. j a  v a  2s  .  c om
    args.putDouble(ELEVATION, elev);
    f.setArguments(args);
    return f;
}

From source file:com.tlongdev.bktf.ui.fragment.CurrencyFragment.java

public static CurrencyFragment newInstance(double usd) {
    CurrencyFragment fragment = new CurrencyFragment();
    Bundle args = new Bundle();
    args.putDouble(ARG_USD_VALUE, usd);
    fragment.setArguments(args);/* w w  w .  ja v  a2  s  .c  o  m*/
    return fragment;
}

From source file:com.reliqartz.firsttipcalc.gui.RatioDialog.java

/**
 * Factory method to create a new instance of this fragment using
 * the provided parameters./* ww  w  .  j  a va 2s  .  com*/
 */
public static RatioDialog newInstance(double bill, int splitFor) {
    RatioDialog fragment = new RatioDialog();
    Bundle args = new Bundle();
    args.putDouble(ARG_BILL, bill);
    args.putInt(ARG_SPLIT_FOR, splitFor);
    fragment.setArguments(args);
    return fragment;
}

From source file:com.crcrch.chromatictuner.app.NotePickerFragment.java

/**
 * Creates a new instance of a {@code NotePickerFragment}.
 *
 * @param initialFreq the frequency that will be displayed initially
 * @param maxFreq the maximum pickable frequency
 * @return a new {@code NotePickerFragment} instance
 *//* w w  w  . j av a2s.c  om*/
public static NotePickerFragment newInstance(double initialFreq, double maxFreq) {
    NotePickerFragment fragment = new NotePickerFragment();
    Bundle args = new Bundle();
    args.putDouble(ARG_INITIAL_FREQ, initialFreq);
    fragment.setArguments(args);
    return fragment;
}

From source file:org.arasthel.almeribus.fragments.CustomMapFragment.java

public static CustomMapFragment newInstance(double longitud, double latitud) {
    CustomMapFragment map = new CustomMapFragment();
    Bundle b = new Bundle();
    b.putDouble("latitud", latitud);
    b.putDouble("longitud", longitud);
    map.setArguments(b);//from   w  ww.ja  v  a 2  s . c  om
    map.mustCenter = false;
    return map;
}

From source file:com.m2dl.mini_projet.mini_projet_android.fragment.PhotoDialogFragment.java

public static PhotoDialogFragment newInstance(Bitmap myBitmap, double coordLat, double coordLong,
        String imageFilePath) {/*from  w  w  w  .jav  a  2s.com*/
    PhotoDialogFragment dialog = new PhotoDialogFragment();
    Bundle args = new Bundle();
    args.putParcelable(ARG_PHOTO, myBitmap);
    args.putDouble(ARG_COORD_LAT, coordLat);
    args.putDouble(ARG_COORD_LONG, coordLong);
    args.putString(ARG_FILE_PATH, imageFilePath);
    dialog.setArguments(args);
    return dialog;
}

From source file:com.facebook.LegacyTokenCacheTest.java

private static void putDouble(String key, Bundle bundle) {
    bundle.putDouble(key, random.nextDouble());
}

From source file:org.wheelmap.android.fragment.EditPositionFragment.java

public static EditPositionFragment newInstance(double latitude, double longitude) {
    Bundle b = new Bundle();
    b.putDouble(Extra.LATITUDE, latitude);
    b.putDouble(Extra.LONGITUDE, longitude);

    EditPositionFragment f = new EditPositionFragment();
    f.setArguments(b);/*from   w  w  w  . j a va 2 s  .co  m*/

    return f;
}

From source file:com.rstar.mobile.thermocouple.ui.NumericKeypadDialogFragment.java

public static NumericKeypadDialogFragment newInstance(String inputCode, double data, String hint) {
    Bundle args = new Bundle();
    NumericKeypadDialogFragment fragment = new NumericKeypadDialogFragment();
    if (hint == null)
        hint = "";

    args.putString(EXTRA_code, inputCode);
    args.putDouble(EXTRA_data, data);
    args.putString(EXTRA_hint, hint);//w  ww.  j  av a 2s  .  co m
    fragment.setArguments(args);
    return fragment;
}