ªð¦^¦Cªí ¤W¤@¥DÃD µo©«

[¤À¨É] Intent »P Bundle¶Ç»¼¸ê®Æ

[¤À¨É] Intent »P Bundle¶Ç»¼¸ê®Æ

¨â­Ó¤£¦PActivity¤§¶¡ªº¸ê®Æ¶Ç»¼
¥i¥H³z¹LIntent »P Bundle·f°tªº¤èªk¨Ó°µ

¶Ç°e¸ê®Æªºµ{¦¡½X:
public void nextview(View view)
{
Intent ihtent=new Intent();
ihtent.setClass(this, report_app2.class);
Bundle ibundle=new Bundle();
EditText editText_name1=(EditText)findViewById(R.id.editText_name);
ibundle.putString("editText_name", editText_name1.getText().toString());
ihtent.putExtras(ibundle);
startActivity(ihtent);
MainActivity.this.finish();
}

±µ¦¬³¡¤Àªºµ{¦¡½X:
TextView textView3=(TextView)findViewById(R.id.textView2);
Bundle receive_bundle1=this.getIntent().getExtras();
textView3.setText(receive_bundle1.getString("editText_name"));

        ÀR«ä¦Û¦b : ¤@­Ó¯Ê¤fªºªM¤l¡A¦pªG´«¤@­Ó¨¤«×¬Ý¥¦¡A¥¦¤´µM¬O¶êªº¡C
ªð¦^¦Cªí ¤W¤@¥DÃD