Code example for Parcel

Methods: writeLongwriteString

0
    /** 
     * @see android.os.Parcelable#writeToParcel(android.os.Parcel, int) 
     */ 
    @Override 
    public void writeToParcel(Parcel dest, int flags) {
        dest.writeString(id);
        dest.writeLong(transactionId);
    } 
 
    /** 
     * Saves data to parcel. 
     *  
     * @param source 
     *            Parcel to save to. 
     * @throws IOException 
     */ 
    public void readFromParcel(Parcel source) throws IOException {
        id = source.readString();
        transactionId = source.readLong();
    } 
Connect your IDE to all the code out there  Get Codota for Java