ªð¦^¦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®É¶¡µLªk¾B¾×¡j©È®É¶¡®ø³u¡Aªá¤F³\¦h¤ß¦å¡A·QºÉ¦U¦¡¤èªk­n¾B¾×®É¶¡¡Aµ²ªG¬O¡G®ö¶O¤F§ó¦h®É¶¡¡A¥B¤@µL©Ò¦¨¡I
ªð¦^¦Cªí ¤W¤@¥DÃD