Back to project page SEP_project.
The source code is released under:
GNU General Public License
If you think the Android project SEP_project listed in this page is inappropriate, such as containing malicious code/tools or violating the copyright, please email info at java2s dot com, thanks.
package cse.sep.mihil.bridgemanagementhelper; // w w w . j a va 2 s. c o m import android.app.Activity; import android.content.Intent; import android.os.Bundle; import android.view.View; import android.widget.EditText; import android.widget.TextView; public class EnterNameActivity extends Activity { public static final String PUBLIC_STATIC_PROJECT_IDENTIFIER = "projectname"; public static final String PUBLIC_STATIC_IMAGEPATH_IDENTIFIER = "image"; @Override protected void onCreate(Bundle savedInstanceState) { // TODO Auto-generated method stub super.onCreate(savedInstanceState); setContentView(R.layout.activity_entername); } // ok button click public void sendOk(View view) { // result is send back to the recieving activity Intent resultIntent = new Intent(); EditText pname = (EditText) findViewById(R.id.enter_project_name); resultIntent.putExtra(PUBLIC_STATIC_STRING_IDENTIFIER, pname.getText().toString()); setResult(Activity.RESULT_OK, resultIntent); finish(); } // cancel button click public void sendCancel(View view) { this.finish(); } }