我正在发送一个实现 Serializable 的自定义类的对象:
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);
}
}
该类包含 atm 一个字符串和一个 ParseFile。
我正在尝试将一个对象从一个 Activity 传递给另一个。
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);
}
在“接收者”活动中:
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
}
我究竟做错了什么..?我关注了关于 SOF 的另一个问题,但这没有帮助;)顺便说一句:不,ParseFile 是Parse 开发人员的课程