Android 2个activity 之间的数据传递
<br />1.通过intent来传递:<br /><br />A.传字符等:activity1中设置:<br /><br />Java代码<br /><br />String text = "hello";<br /><br />Intent intent1 = new Intent(ActivityMain.this, Activity2.class);<br /><br />intent1.putExtra("activity1", text);<br /><br />startActivity(in
转载
2011-01-24 21:45:00 ·
670 阅读 ·
0 评论