Android examples for android.os:Bundle
get Long from Bundle, return null if not found
import android.os.Bundle; import android.text.TextUtils; import java.io.Serializable; public class Main{ public static Long getLong(Bundle arguments, String key) { if (arguments.containsKey(key)) { return arguments.getLong(key); } else {/* w w w. j a v a2s . c om*/ return null; } } }