title: Passing argument between Activities - null
body: <p>I'm sending an object of my custom class which implements Serializable:</p>
  
  <pre><code>public class MyObject extends ParseObject implements Serializable {
  private static final long serialVersionUID = 1L;
  public MyObject() {
  }
  public String getTitle() {
      return getString("title");
  }
  public void setTitle(String title) {
      put("title", title);
  }
  public ParseFile getParseFile() {
      return getParseFile("file");
  }
  public void setParseFile(ParseFile file) {
      put("file", file);
  }
  }
  </code></pre>
  
  <p>The class contains atm one string and one ParseFile.</p>
  
  <p>I'm trying to pass an object from one Activity to another.</p>
  
  <pre><code>private void editMyObject(MyObject myObject) {
      Intent intent = new Intent(AActivity.this, BActivity.class);
      intent.putExtra("MyObject", myObject);  
      Toast.makeText(getApplicationContext(), "OUT: "+myObject.getTitle(), Toast.LENGTH_SHORT).show(); // here i get the content, proper string
      startActivity(intent);
  }
  </code></pre>
  
  <p>And in 'receiver' activity:</p>
  
  <pre><code>protected void onCreate(Bundle savedInstanceState) {
      ...
  
      Intent intent = getIntent();
      myObject = (MyObject)intent.getSerializableExtra("MyObject");
      if (myObject != null) {
          editText.setText(myObject.getTitle());
      }
      Toast.makeText(getApplicationContext(), "IN: "+myObject.getTitle(), Toast.LENGTH_SHORT).show(); // here is null
  }
  </code></pre>
  
  <p>What am i doing wrong..? I followed another questions on SOF but that didn't help ;)
  BTW: No, ParseFile is class from <a href="https://parse.com/docs/android_guide#files" rel="nofollow">Parse developers</a></p>