如何通过一个意图中的自定义数据对象 [英] How to pass a Custom data object within a intent

查看:88
本文介绍了如何通过一个意图中的自定义数据对象的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我需要传递的意图之内我的数据对象,这样所谓的活动可以使用。
但发现没有方法来添加那些意图。

I need to pass my data object within the intent so that called activity can use that. But finding no method to add those to the intent.

任何一个可以请放轻在这个

Can any one please put light in this

感谢

推荐答案

您将需要使你的数据对象parcelable和意图内发送。

You will need to make your data object parcelable and send it within the intent.

检查下面的链接。希望它会帮助你:)

Check the link below. Hope it will help you :)

http://prasanta-paul.blogspot.com/ 2010/06 / Android的parcelable-example.html的

这篇关于如何通过一个意图中的自定义数据对象的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆