title: How to make the value of the edit text able to send to another activity?
body: <p>I'm working on an app where I type date in the EditText and it will send the date(which is typed in) to another activity and display as a TextView. I had created a button above the text box.</p>
  
  <p>Below are the 2 activities of sending and getting the date.
  PersonalInfo.class
  these are the codes for sending the date to another activity</p>
  
  <pre><code>Button btnDate = (Button) findViewById(R.id.btnDate);
          btnDate.setOnClickListener(new View.OnClickListener()
              {
  
                  @Override
                  public void onClick(View v)
                  {
                      Intent dateIntent = new Intent();                   
                      dateIntent.setClass(PersonalInfo.this, Create_Events.class);
                      dateIntent.putExtra("passDate", "Date_var_here");
                      PersonalInfo.this.startActivity(dateIntent);
  
                  }
              });
  </code></pre>
  
  <p>Create_Events.class
  Codes for getting the date from first activity, and it'll display the date as textview</p>
  
  <pre><code>Intent dateIntent = this.getIntent();    
          /* Obtain String from Intent  */   
          if(dateIntent !=null)   
          {      
              String strDate = dateIntent.getExtras().getString("passDate");     
              TextView txtDate = (TextView) findViewById(R.id.txtDate);
              txtDate.setText(strDate);
          } 
  </code></pre>