Android examples for Android OS:Bundle Put
Puts long value into a bundle.
//package com.book2s; import android.os.Bundle; public class Main { /**//from ww w.j a va2s . c o m * Puts long value into a bundle. If bundle is null new one will be created. * * @param bundle to put into * @param key to put under * @param value to put * @return bundle with the value */ public static Bundle putLong(Bundle bundle, String key, long value) { if (bundle == null) { bundle = new Bundle(); } bundle.putLong(key, value); return bundle; } }