传递活动之间的自定义对象?自定义、对象

由网友(墨樱)分享简介:我如何传递的Andr​​oid activites之间的自定义对象?我知道捆绑,但我似乎无法看到他们为这个任何功能。谁能告诉我这方面的一个很好的例子?How do I pass custom objects between activites in android? I'm aware of bundles but...

我如何传递的Andr​​oid activites之间的自定义对象?我知道捆绑,但我似乎无法看到他们为这个任何功能。谁能告诉我这方面的一个很好的例子?

How do I pass custom objects between activites in android? I'm aware of bundles but I can't seem to see any functionality for this in them. Could anyone show me a nice example of this?

推荐答案

您应该实现Parcelable接口。的http://bimbim.in/post/2010/09/27/Android-Passing-object-from-one-activity-to-another.aspx

You should implement Parcelable interface. http://bimbim.in/post/2010/09/27/Android-Passing-object-from-one-activity-to-another.aspx

修改的链接文档:的http:// developer.android.com/reference/android/os/Parcelable.html

阅读全文

相关推荐

最新文章