변경사항 47
- 날 짜:
- 2010-02-10 PM 6:01:07 (15 년 전)
- 파일들:
-
- trunk/19.ExIntenttDataTest/bin/19.ExIntenttDataTest.apk (modified) (이전 파일)
- trunk/19.ExIntenttDataTest/bin/classes.dex (modified) (이전 파일)
- trunk/19.ExIntenttDataTest/bin/resources.ap_ (modified) (이전 파일)
- trunk/19.ExIntenttDataTest/src/soo/elements/intent/ExIntenttDataTest.java (modified) (3 diffs)
- trunk/19.ExIntenttDataTest/src/soo/elements/intent/SubForm.java (modified) (2 diffs)
Legend:
- 수정되지 않음
- 추가됨
- 제거됨
- 수정됨
- 복사됨
- 이동됨
trunk/19.ExIntenttDataTest/src/soo/elements/intent/ExIntenttDataTest.java
r46 r47 12 12 /** Called when the activity is first created. */ 13 13 14 14 TextView tv1,tv2; 15 15 @Override 16 16 public void onCreate(Bundle savedInstanceState) { … … 21 21 22 22 bt.setOnClickListener(new OnClickListener() { 23 23 24 24 @Override 25 25 public void onClick(View v) { 26 tv1 = (TextView)findViewById(R.id.textView01); 27 tv2 = (TextView)findViewById(R.id.textView02); 26 28 // TODO Auto-generated method stub 27 29 Intent i = new Intent(ExIntenttDataTest.this,SubForm.class); 30 i.putExtra("param_name", tv1.getText()); 31 i.putExtra("param_addr", tv2.getText()); 28 32 startActivityForResult(i,1 ); //���瑜�二쇰� 寃���� 1����껌肄��(requestCode) �대�.. 29 33 } … … 33 37 @Override 34 38 protected void onActivityResult(int requestCode,int resultCode,Intent data){ 35 TextViewtv1 = (TextView)findViewById(R.id.textView01);36 TextViewtv2 = (TextView)findViewById(R.id.textView02);39 tv1 = (TextView)findViewById(R.id.textView01); 40 tv2 = (TextView)findViewById(R.id.textView02); 37 41 38 42 if(resultCode == RESULT_OK){ //���濡�諛���������. trunk/19.ExIntenttDataTest/src/soo/elements/intent/SubForm.java
r46 r47 12 12 13 13 Intent i; 14 14 EditText et1,et2; 15 15 @Override 16 16 public void onCreate(Bundle savedInstanceState) { … … 23 23 bt.setOnClickListener(new OnClickListener() { 24 24 25 26 String name = i.getStringExtra("param_name"); 27 String addr = i.getStringExtra("param_addr"); 28 29 30 25 31 @Override 26 32 public void onClick(View v) { 27 33 // TODO Auto-generated method stub 28 EditTextet1 = (EditText)findViewById(R.id.s_editText01);29 EditTextet2 = (EditText)findViewById(R.id.s_editText02);34 et1 = (EditText)findViewById(R.id.s_editText01); 35 et2 = (EditText)findViewById(R.id.s_editText02); 30 36 31 37 i.putExtra("param_name", et1.getText().toString());