title: How to pass a value from one Activity to another in Android?
body: <p>I have created an Activity with a AutuCompleteTextView[ACTV] and button. I enter some text in the ACTV then press the button.
  After I press the button I want the Activity to go to another Activity. In the second Activity I just want to display the text entered in ACTV(of the first actvity) as a TextView.  </p>
  
  <p>I know how to start the second activity which is as below:</p>
  
  <pre><code>Intent i = new Intent(this, ActivityTwo.class);
  startActivity(i);
  </code></pre>
  
  <p>I have coded this to obtain the text entered from the ACTV.</p>
  
  <pre><code>AutoCompleteTextView textView = (AutoCompleteTextView) findViewById(R.id.autocomplete);
  CharSequence getrec=textView.getText();
  </code></pre>
  
  <p>My question here is how to pass "getrec" (after I press the button) from the first Activity to the second. And later recieve "getrec" in the second activity.</p>
  
  <p>Please assume that I have created the event handler class for the button by using "onClick(View v)"</p>