Intent传递对象
来源:互联网 发布:网狐6603捕鱼源码 编辑:程序博客网 时间:2024/04/29 20:52
Intent intent = new Intent(ShangpinManageActivity.this, EditCommodityDetailActivity.class); Bundle bundle = new Bundle(); bundle.putSerializable(SIA_KEY, goodsInfo); intent.putExtras(bundle); startActivity(intent);
获取:
GoodsInfo goodsInfo = (GoodsInfo) getIntent().getSerializableExtra(ShangpinManageActivity.SIA_KEY);
集合也是可以传递的:
Intent intent = new Intent(this, AddGroupDetailActivity.class); Bundle bundle = new Bundle(); bundle.putSerializable("listDatas", (Serializable) popListDatas); intent.putExtras(bundle); startActivityForResult(intent, 102);
获取:
groupDatas = new ArrayList<GoodsInfo>(); groupDatas = (List<GoodsInfo>) getIntent().getSerializableExtra("listDatas");
0 0
- Intent传递对象?
- Intent传递对象?
- Intent 传递复杂对象
- Android Intent传递对象
- Android Intent 传递对象
- intent 传递对象
- Intent传递对象Parcel
- Intent 传递对象
- Intent如何传递对象
- Intent如何传递对象
- Android Intent传递对象
- Intent 传递对象
- Intent 传递类对象
- 通过intent传递对象
- Intent传递对象
- intent 传递自定义对象
- intent传递类对象
- Intent传递对象
- 表面着色器附加顶点着色器片段 实现模型顶点动画
- kafka对比ActiveMQ
- ~Linux面试题汇总答案
- 还只知道“蓝瘦香菇”?来这里五分钟速成广西普通话十级
- 第58课: 广告点击广告累计点击数分析与实现
- Intent传递对象
- eclipse快捷键
- blinphong光照
- CODEVS 1066 引水入城
- java判断字符串是否为数字型字符串
- POJ 3050 Hopscotch
- JAVA Iterator 设计模式
- Redis 内存使用优化与存储
- c++11实现写优先的读写锁