title: Android Parcelable Issue
body: <p>I had to pass a dataobject from one activity to another. The best way to do this is uing Parcelable.
  The dataobject had some fields with setter and getter methods. After setting some fields and passing the object to another activity, wha tI observed is that the field values got interchanged to other field values.
  The order of fields for writing to parcel and reading from parcel is the same.</p>
  
  <pre><code>public void writeToParcel(Parcel out, int flags) {
      out.writeInt(id);
      out.writeString(appNo);
      out.writeString(this.policyNo);
      out.writeInt((int)this.AppRcptDt.getTime());
      out.writeString(this.currentStatus);
      out.writeString(this.productCd);
      out.writeDouble(this.sumAssured);
      out.writeDouble(this.modalPremium);
      out.writeDouble(this.annualPremium);
      out.writeString(this.paymentMode);
      out.writeString(this.branchCd);
      out.writeString(this.branchName);
      out.writeString(this.insuredName);
      out.writeString(this.auraStatus);
      out.writeString(this.ownerName);
      out.writeString(this.agentCd);
      out.writeString(this.billingMode);
  }
  
  private ApplicationTrackerDO(Parcel in) {
      id=in.readInt();
      this.appNo = in.readString();
      this.policyNo = in.readString();
      this.AppRcptDt = new Date(in.readLong());
      this.currentStatus = in.readString();
      this.productCd = in.readString();
      this.sumAssured = in.readDouble();
      this.modalPremium = in.readDouble();
      this.annualPremium = in.readDouble();
      this.paymentMode = in.readString();
      this.branchCd = in.readString();
      this.branchName = in.readString();
      this.insuredName = in.readString();
      this.auraStatus = in.readString();
      this.ownerName = in.readString();
      this.agentCd = in.readString();
      this.billingMode = in.readString();
  }
  </code></pre>
  
  <p><img src="https://i.stack.imgur.com/NMWtQ.jpg" alt="difference in field values"></p>