Intent传递参数,接收参数

来源:互联网 发布:js 离开页面事件 编辑:程序博客网 时间:2024/05/17 02:06

//Intent传递参数

Intent it = new Intent(now.this,go.class);

it.putExtra("str", str);

startActivity(it);


//Intent接收参数

 String crashTime = getIntent().getStringExtra("cat_id");

0 0
原创粉丝点击