Code example for Parcel

Methods: writeBytewriteLongwriteParcelablewriteString

0
    return 0; 
  } 
 
  @Override 
  public void writeToParcel(Parcel out, int flags) {
    out.writeLong(trackId);
    out.writeString(sharingAppPackageName);
    out.writeString(sharingAppClassName);
    out.writeByte((byte) (sendMaps ? 1 : 0));
    out.writeByte((byte) (sendFusionTables ? 1 : 0));
    out.writeByte((byte) (sendDocs ? 1 : 0));
    out.writeByte((byte) (newMap ? 1 : 0));
    out.writeParcelable(account, 0);
    out.writeString(mapId);
    out.writeByte((byte) (mapsSuccess ? 1 : 0));
    out.writeByte((byte) (fusionTablesSuccess ? 1 : 0));
    out.writeByte((byte) (docsSuccess ? 1 : 0));
  } 
 
  public static final Parcelable.Creator<SendRequest> CREATOR = new Parcelable.Creator<
      SendRequest>() { 
    public SendRequest createFromParcel(Parcel in) { 
Connect your IDE to all the code out there  Get Codota for Java