변경사항 48

차이점에서
다음 변경사항 무시하기:
날 짜:
2010-02-10 PM 9:57:34 (15 년 전)
작성자:
mefour
메시지:

수정..

파일들:

Legend:

수정되지 않음
추가됨
제거됨
수정됨
복사됨
이동됨
  • trunk/19.ExIntenttDataTest/src/soo/elements/intent/SubForm.java

    r47 r48  
    2121                                         //main��� 留���댁� 二쇰� 寃���� 
    2222        Button bt = (Button)findViewById(R.id.s_button01); 
    23         bt.setOnClickListener(new OnClickListener() { 
    24                          
    25                          
     23         
    2624        String name = i.getStringExtra("param_name"); 
    2725        String addr = i.getStringExtra("param_addr"); 
    2826         
     27        et1 = (EditText)findViewById(R.id.s_editText01); 
     28                et2 = (EditText)findViewById(R.id.s_editText02); 
     29                 
     30        if(name !=null){ 
     31                et1.setText(name); 
     32        } 
     33        if(addr !=null){ 
     34                et2.setText(addr); 
     35        }         
    2936         
    30          
     37        bt.setOnClickListener(new OnClickListener() { 
    3138                        @Override 
    3239                        public void onClick(View v) { 
    3340                                // TODO Auto-generated method stub 
    34                                 et1 = (EditText)findViewById(R.id.s_editText01); 
    35                                 et2 = (EditText)findViewById(R.id.s_editText02); 
    36                                  
    3741                                i.putExtra("param_name", et1.getText().toString()); 
    3842                                i.putExtra("param_addr", et2.getText().toString());