Index: /trunk/19.ExIntenttDataTest/default.properties =================================================================== --- /trunk/19.ExIntenttDataTest/default.properties (revision 46) +++ /trunk/19.ExIntenttDataTest/default.properties (revision 46) @@ -0,0 +1,13 @@ +# This file is automatically generated by Android Tools. +# Do not modify this file -- YOUR CHANGES WILL BE ERASED! +# +# This file must be checked in Version Control Systems. +# +# To customize properties used by the Ant build system use, +# "build.properties", and override values to adapt the script to your +# project structure. + +# Indicates whether an apk should be generated for each density. +split.density=false +# Project target. +target=android-7 Index: /trunk/19.ExIntenttDataTest/.classpath =================================================================== --- /trunk/19.ExIntenttDataTest/.classpath (revision 46) +++ /trunk/19.ExIntenttDataTest/.classpath (revision 46) @@ -0,0 +1,7 @@ + + + + + + + Index: /trunk/19.ExIntenttDataTest/.project =================================================================== --- /trunk/19.ExIntenttDataTest/.project (revision 46) +++ /trunk/19.ExIntenttDataTest/.project (revision 46) @@ -0,0 +1,33 @@ + + + 19.ExIntenttDataTest + + + + + + com.android.ide.eclipse.adt.ResourceManagerBuilder + + + + + com.android.ide.eclipse.adt.PreCompilerBuilder + + + + + org.eclipse.jdt.core.javabuilder + + + + + com.android.ide.eclipse.adt.ApkBuilder + + + + + + com.android.ide.eclipse.adt.AndroidNature + org.eclipse.jdt.core.javanature + + Index: /trunk/19.ExIntenttDataTest/AndroidManifest.xml =================================================================== --- /trunk/19.ExIntenttDataTest/AndroidManifest.xml (revision 46) +++ /trunk/19.ExIntenttDataTest/AndroidManifest.xml (revision 46) @@ -0,0 +1,18 @@ + + + + + + + + + + + + + + Index: /trunk/19.ExIntenttDataTest/src/soo/elements/intent/ExIntenttDataTest.java =================================================================== --- /trunk/19.ExIntenttDataTest/src/soo/elements/intent/ExIntenttDataTest.java (revision 46) +++ /trunk/19.ExIntenttDataTest/src/soo/elements/intent/ExIntenttDataTest.java (revision 46) @@ -0,0 +1,48 @@ +package soo.elements.intent; + +import android.app.Activity; +import android.content.Intent; +import android.os.Bundle; +import android.view.View; +import android.view.View.OnClickListener; +import android.widget.Button; +import android.widget.TextView; + +public class ExIntenttDataTest extends Activity { + /** Called when the activity is first created. */ + + + @Override + public void onCreate(Bundle savedInstanceState) { + super.onCreate(savedInstanceState); + setContentView(R.layout.main); + + final Button bt = (Button)findViewById(R.id.button01); + + bt.setOnClickListener(new OnClickListener() { + + @Override + public void onClick(View v) { + // TODO Auto-generated method stub + Intent i = new Intent(ExIntenttDataTest.this,SubForm.class); + startActivityForResult(i,1 ); //���瑜�二쇰� 寃���� 1����껌肄��(requestCode) �대�.. + } + }); + } + + @Override + protected void onActivityResult(int requestCode,int resultCode,Intent data){ + TextView tv1 = (TextView)findViewById(R.id.textView01); + TextView tv2 = (TextView)findViewById(R.id.textView02); + + if(resultCode == RESULT_OK){ //���濡�諛���������. + if(requestCode==1){ + String name = data.getStringExtra("param_name"); + String addr = data.getStringExtra("param_addr"); + + tv1.setText(name); + tv2.setText(addr); + } + } + } +} Index: /trunk/19.ExIntenttDataTest/src/soo/elements/intent/SubForm.java =================================================================== --- /trunk/19.ExIntenttDataTest/src/soo/elements/intent/SubForm.java (revision 46) +++ /trunk/19.ExIntenttDataTest/src/soo/elements/intent/SubForm.java (revision 46) @@ -0,0 +1,39 @@ +package soo.elements.intent; + +import android.app.Activity; +import android.content.Intent; +import android.os.Bundle; +import android.view.View; +import android.view.View.OnClickListener; +import android.widget.Button; +import android.widget.EditText; + +public class SubForm extends Activity { + + Intent i; + + @Override + public void onCreate(Bundle savedInstanceState) { + super.onCreate(savedInstanceState); + setContentView(R.layout.sub); + + i = getIntent(); //��� �≫�鍮��(SubForm)�������� ���명��몃� 援ы����. + //main��� 留���댁� 二쇰� 寃���� + Button bt = (Button)findViewById(R.id.s_button01); + bt.setOnClickListener(new OnClickListener() { + + @Override + public void onClick(View v) { + // TODO Auto-generated method stub + EditText et1 = (EditText)findViewById(R.id.s_editText01); + EditText et2 = (EditText)findViewById(R.id.s_editText02); + + i.putExtra("param_name", et1.getText().toString()); + i.putExtra("param_addr", et2.getText().toString()); + + setResult(RESULT_OK,i); //�명���諛�� + finish(); //Subform Activity媛�醫�����. + } + }); + } +} Index: /trunk/19.ExIntenttDataTest/res/values/strings.xml =================================================================== --- /trunk/19.ExIntenttDataTest/res/values/strings.xml (revision 46) +++ /trunk/19.ExIntenttDataTest/res/values/strings.xml (revision 46) @@ -0,0 +1,5 @@ + + + Hello World, ExIntenttDataTest! + ExIntenttDataTest + Index: /trunk/19.ExIntenttDataTest/res/layout/main.xml =================================================================== --- /trunk/19.ExIntenttDataTest/res/layout/main.xml (revision 46) +++ /trunk/19.ExIntenttDataTest/res/layout/main.xml (revision 46) @@ -0,0 +1,52 @@ + + + + + + + + + + + + + + +