Android Open Source - SEP_project Enter Name Activity

From Project

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.

Java Source Code

package cse.sep.mihil.bridgemanagementhelper;
//  w  w w  . j  a  va 2 s. c  o m
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";

  protected void onCreate(Bundle savedInstanceState) {
    // TODO Auto-generated method stub
  // ok button click

  public void sendOk(View view) {
    // result is send back to the recieving activity

    Intent resultIntent = new Intent();
    EditText pname = (EditText) findViewById(;
    resultIntent.putExtra(PUBLIC_STATIC_STRING_IDENTIFIER, pname.getText().toString());
    setResult(Activity.RESULT_OK, resultIntent);

  // cancel button click

  public void sendCancel(View view) {



Java Source Code List