Code example for Parcel

Methods: writeInt, writeLong

0
        return 0; 
    } 
 
    @Override 
    public void writeToParcel(Parcel dest, int flags) {
        dest.writeLong(maxTime);
        dest.writeLong(maxOps);
        dest.writeInt(combOp);
        dest.writeInt(fgOp);
        dest.writeInt(bgOp);
    } 
 
    public static final Parcelable.Creator<TestArgs> CREATOR
            = new Parcelable.Creator<TestArgs>() { 
        public TestArgs createFromParcel(Parcel in) { 
            return new TestArgs(in); 
        } 
 
        public TestArgs[] newArray(int size) { 
            return new TestArgs[size]; 
        }