Java tutorial
//package com.java2s; import android.os.Parcel; public class Main { public static Double readDoubleFromParcel(Parcel in) { return (in.readByte() != 0) ? in.readDouble() : null; } }