Android 两个Activity进行数据传送 发送
Activity1::
Intent intent= new Intent(this, OtherActivity.class); String name = "heyiyong"; intent.putExtra("name", name); startActivity(intent);
OtherActivity:
Intent intent = getIntent();//获取调用者的意图 String name = intent.getStringExtra("name"); System.out.println(name);
本文出自 无忧之路 - 博客园