ªð¦^¦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 : ¡i»X½ªªº¦Û¥Ñ¡j¤H±`¦b¤°»ò³£¥i¥H¦Û¥Ñ¦Û¦bªº®É­Ô¡A«o³Q³oºØÀH¤ß©Ò±ýªº¦Û¥Ñ»X½ª¡AµêÂY®É¥ú¦Ó²@µLıª¾¡C
ªð¦^¦Cªí ¤W¤@¥DÃD