阅读245 返回首页    go 阿里云 go 技术社区[云栖]


Intent跳转

<!-- [if gte mso 9]><![endif]--><!-- [if gte mso 9]><![endif]--><!-- [if gte mso 10]><![endif]--><!-- [if gte mso 9]><![endif]--><!-- [if gte mso 9]><![endif]-->

Intent itmod = newIntent(WeigthListActivity.this, WeigthModActivity.class);

itmod.putExtra(""+SysConst.TABLE_FIELD_DATE, selectid);

itmod.putExtra(""+SysConst.TABLE_FIELD_INPUT,

cursor.getString(cursor.getColumnIndex(SysConst.TABLE_FIELD_INPUT)));

itmod.putExtra(""+SysConst.TABLE_FIELD_OUTPUT,

cursor.getString(cursor.getColumnIndex(SysConst.TABLE_FIELD_OUTPUT)));

itmod.putExtra(""+SysConst.TABLE_FIELD_WEIGHT, cursor.getString(cursor.getColumnIndex(SysConst.TABLE_FIELD_WEIGHT)));

itmod.putExtra(""+SysConst.TABLE_FIELD_AMOUNTEXERCISE,

 cursor.getString(cursor.getColumnIndex(SysConst.TABLE_FIELD_AMOUNTEXERCISE)));

startActivity(itmod);


Intent对象有很多的putExtra(…)方法,通过“key-value”对的方式把数据放置到Extras对象中。

最后更新:2017-04-02 06:51:42

  上一篇:go 表格列转行
  下一篇:go 对象序列化反序列化例子