Code example for Parcel

Methods: writeInt, writeString, writeStringList

0
  /** 
   * {@inheritDoc} 
   */ 
  @Override 
  public void writeToParcel(Parcel dest, int flags) {
    dest.writeInt(mID);
    dest.writeInt(mStatus);
    dest.writeString(mJID);
    dest.writeString(mSelectedRes);
    dest.writeString(mName);
    dest.writeString(mMsgState);
    dest.writeStringList(getMRes());
    dest.writeStringList(getGroups());
  } 
 
  /** 
   * Add a group for the contact. 
   *  
   * @param group the group 
   */ 
  public void addGroup(String group) {