Android中2个activity之间的数据传递方法
摘要:
1. 通过intent来传递:activity1中设置: A.传字符等: Java代码 String text = "hello"; Intent intent1 = new Intent(ActivityMain.this, Activity2.class); intent1.putExtra("activity1", text); startActivity(intent1); B. 传对象,对象要实例化,继承Serializable Java代码 Bundle mbundle=new Bundle(); mbundle.putSerializabl 阅读全文
posted @ 2011-03-07 22:18 eustoma 阅读(619) 评论(0) 推荐(0)
浙公网安备 33010602011771号