开启意图
String str = "令狐冲";
Intent intent = new Intent(getContext(), ContentResultsActivity.class);
intent.putExtra("name",str);
startActivity(intent);
接收意图
Intent intent = getIntent();
int id = intent.getStringExtra("name");
网友评论