android intent传递HashMap<String, Object>
来源:互联网 发布:微信发假红包软件最新 编辑:程序博客网 时间:2024/06/05 15:37
数据源:ArrayList<HashMap<String, Object>> array_hdgl
在适配器中使用intent 传递HashMap:
Intent intent=null;
intent=new Intent(context, AddHDActivity.class);
intent.setFlags(Intent.FLAG_ACTIVITY_NEW_TASK | Intent.FLAG_ACTIVITY_EXCLUDE_FROM_RECENTS);
intent.putExtra("data", array_hdgl.get(position));
intent.putExtra("type", "修改");
context.startActivity(intent);
在AddHDActivity中获取传递过来的值:
HashMap<String, Object> array_hwgl=new HashMap<String, Object>();
array_hwgl=(HashMap<String, Object>) getIntent().getSerializableExtra("data");
img_addhdval.setImageResource((Integer) array_hwgl.get("hdimg_hdgl"));
xprice_addhdval.setText(array_hwgl.get("xprice_hdgl")
.toString());
yprice_addhdval.setText(array_hwgl.get("ypriceval_hdgl")
.toString());
ms_addhdval.setText(array_hwgl.get("hdms_hdgl")
.toString());
add_addhd.setImageBitmap(MyPublic.readBitMap(this, R.drawable.add_img));
0 0
- android intent传递HashMap<String, Object>
- android Intent传递 object , list<object>,list<Map<String,Object>>
- Android Intent传递object
- android handler 传递 ArrayList<HashMap<String,Object>>问题
- android activity之间传递ArrayList<HashMap<String,Object>>
- android activity之间传递ArrayList<HashMap<String,Object>>
- android handler 传递 ArrayList<HashMap<String,Object>>问题
- android activity之间传递ArrayList<HashMap<String,Object>>
- android activity之间传递ArrayList<HashMap<String,Object>>
- Android Intent传递List<Object>数据
- Android intent传递hashMap对象,遍历hashMap,改变menu状态
- Intent传递HashMap数据
- Android中Intent传递Object和ArrayList<Object>对象---笔记
- Intent 传递List<Object>
- Intent传递List<Object>
- Android笔记—Intent传递序列化HashMap对象
- Android之–Activity通过Intent传递Object
- 【Android数据传递】Intent传递List和Object和List<Object>(附源码)
- 单例模式
- 【转】21分钟mysql入门教程
- R语言 安装与入门
- 剑指offer第二十五题【复杂链表的复制】c++实现
- 数据检索---分词算法
- android intent传递HashMap<String, Object>
- NSParameterAssert延伸出去的理解
- Android 可拖拽的GridView效果实现, 长按可拖拽item
- KeyNi liu's living habits
- 爬网易首页新闻头条
- 25.Android 轻缓存工具SharedPreferencesUtil
- cocos2d中让视角根据主角精灵移动
- Python科学计算学习笔记
- 给 Android 开发者的 RxJava 详解