public void onClick(View v) {
// TODO Auto-generated method stub
switch (v.getId()) {
case R.id.A:
String s = edt1.getText().toString();
Intent intentA = new Intent(this, ActivityA.class);
intentA.putExtra("s", s);
startActivityForResult(intentA, 1);
break;}
}
我只会写到这儿了,但是ActivityA中如何接受这个,我真的不会,求大神帮忙解答
public class ActivityA extends Activity{ @Override protected void onCreate(Bundle savedInstanceState) { // TODO Auto-generated method stub super.onCreate(savedInstanceState); setContentView(R.layout.activity_a); }}
|
|