Code example for Parcel

Methods: readInt, readString, readStringList

0
   * Construct a contact from a parcel. 
   *  
   * @param in parcel to use for construction 
   */ 
  private Contact(final Parcel in) {
    mID = in.readInt();
    mStatus = in.readInt();
    mJID = in.readString();
    mSelectedRes = in.readString();
    mName = in.readString();
    mMsgState = in.readString();
    mRes = new ArrayList<String>();
    in.readStringList(mRes);
    in.readStringList(mGroups);
  } 
 
  /** 
   * Constructor. 
   *  
   * @param jid JID of the contact 
   */