下面是本人的代码 ,本人应该怎么样修改?
tongzhi1=(TextView)findViewById(R.id.tongzhi1);
tongzhi1.setOnClickListener(new OnClickListener(){
public void onClick(View args0){
Intent intent = new Intent();
Bundle bundle = new Bundle();
String hh = tongzhi1.getText().toString();
// String content = tongzhi1.getText().toString();
// String time = tongzhi1.getText().toString();
bundle.putString("noticeTitle", "");
bundle.putString("notice", hh);
bundle.putString("sendDateStr", "");
intent.putExtras(bundle);
intent.setClass(NoticeActivity.this,NoticeDetailedActivity.class);
startActivity(intent);
}
});
解决方案
10
把你要传的三个值带不过去不就行了吗 没看出来问题点在哪里…
10
intent不是把值带过去了吗 那边接收就是了啊 请百度activity之间intent传参