Code example for Parcel

Methods: readSerializable, readString

0
     */ 
    public static final Creator<OperatorInfo> CREATOR =
        new Creator<OperatorInfo>() { 
            public OperatorInfo createFromParcel(Parcel in) { 
                OperatorInfo opInfo = new OperatorInfo( 
                        in.readString(), /*operatorAlphaLong*/ 
                        in.readString(), /*operatorAlphaShort*/ 
                        in.readString(), /*operatorNumeric*/ 
                        (State) in.readSerializable()); /*state*/ 
                return opInfo; 
            } 
 
            public OperatorInfo[] newArray(int size) { 
                return new OperatorInfo[size]; 
            } 
        }; 
}