<!-- [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对象中。

相关文章:

  • 2022-12-23
  • 2021-09-07
  • 2021-11-29
  • 2021-12-04
  • 2021-05-09
  • 2021-06-20
  • 2022-01-01
猜你喜欢
  • 2022-12-23
  • 2021-07-12
  • 2021-10-22
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-01-01
相关资源
相似解决方案