Android Open Source - SEP_project Enter Name Activity






From Project

Back to project page SEP_project.

License

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.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();
  }

}




Java Source Code List

cse.sep.mihil.bridgemanagementhelper.AlbumStorageDirFactory.java
cse.sep.mihil.bridgemanagementhelper.AnnotationActivity.java
cse.sep.mihil.bridgemanagementhelper.BaseAlbumDirFactory.java
cse.sep.mihil.bridgemanagementhelper.DataActivity.java
cse.sep.mihil.bridgemanagementhelper.EnterNameActivity.java
cse.sep.mihil.bridgemanagementhelper.FroyoAlbumDirFactory.java
cse.sep.mihil.bridgemanagementhelper.ImageAnnotateActivity.java
cse.sep.mihil.bridgemanagementhelper.MainActivity.java
cse.sep.mihil.bridgemanagementhelper.util.SystemUiHiderBase.java
cse.sep.mihil.bridgemanagementhelper.util.SystemUiHiderHoneycomb.java
cse.sep.mihil.bridgemanagementhelper.util.SystemUiHider.java