title: passing parcelable class from fragment to another activity
body: <p>I usually have no problem with parcelable, but this time i got NPE...and i cant fix it. Please kindly help me.</p>
  
  <p>The NPE occurred <strong>only</strong> when i try to pass the parcelable class from fragment to another activity. Things working fine if i pass the parcelable class from activity to another activity or from activity to fragment.</p>
  
  <p>This is my fragment code, the <code>child</code> (parcelable class) is NOT null when i debugged it :</p>
  
  <pre><code>if(v == imgChild)
  {
      Intent i = new Intent(getActivity(), DetailChildActivity.class);
      i.putExtra("child", child);
      startActivity(i);
      Log.d("menu", "children");
  }
  </code></pre>
  
  <p>Here in my target <code>onCreate</code> activity :</p>
  
  <pre><code>Bundle data = getIntent().getExtras();
  if(data != null)
  {
      child = data.getParcelable("child"); //NPE here
  
      txtName.setText(child.getName());
  }
  </code></pre>
  
  <p>This is strange. The data is NOT null, but the parcelable is always null.</p>
  
  <p>This is my parcelable (<code>Child</code>) class :</p>
  
  <pre><code>public final Parcelable.Creator&lt;Child&gt; CREATOR = new Parcelable.Creator&lt;Child&gt;() {
      public Child createFromParcel(Parcel in) {
          return new Child(in);
      }
  
      public Child[] newArray(int size) {
          return new Child[size];
      }
  };
  
  private Child(Parcel in) {
      id = in.readInt();
      user_id = in.readInt();
      name = in.readString();
      gender = in.readString();
      born_date = in.readString();
      born_hour = in.readString();
      hospital = in.readString();
      result = in.readString();
  }
  
  @Override
  public int describeContents() {
      // TODO Auto-generated method stub
      return 0;
  }
  
  @Override
  public void writeToParcel(Parcel dest, int flags) {
      // TODO Auto-generated method stub
      dest.writeInt(id);
      dest.writeInt(user_id);
      dest.writeString(name);
      dest.writeString(gender);
      dest.writeString(born_date);
      dest.writeString(born_hour);
      dest.writeString(hospital);
      dest.writeString(result);
  }
  </code></pre>
  
  <p>This is what the <code>log cat</code> said :</p>
  
  <p><strong>expected receiver of type com.blabla.child, but got null</strong></p>
  
  <p>Thanks for your time.</p>