閱讀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 對象序列化反序列化例子