Code example for Parcel

Methods: writeDoublewriteIntwriteLongwriteString

0
    } 
 
    @Override 
    public void writeToParcel(Parcel out, int arg1) {
 
        out.writeInt(mKitId);
        out.writeDouble(mUnlockPercentage);
        out.writeLong(mScoreNeeded);
        out.writeLong(mScoreCurrent);
        out.writeString(mParentIdentifier);
        out.writeString(mUnlockIdentifier);
        out.writeString(mObjective);
        out.writeString(mType);
 
    } 
 
    public static final Parcelable.Creator<UnlockData> CREATOR = new Parcelable.Creator<UnlockData>() {
 
        public UnlockData createFromParcel(Parcel in) { 
            return new UnlockData(in); 
Contextual code suggestions in your IDE  Get Codota for Java