title: How to pass edit text data in form of string  to next activity?
body: <p>I am developing an android application in which i have taken two buttons and one edit text box.
  i want to pass the data of edit text box in from of string to the next activity on click of one of the buttons, how can i pass the text to the next activity and  receive  that text in the new launched activity so could use the text  in that. </p>
  
  <p>my code  for first activity is </p>
  
  <pre><code>EditText Urlis=(EditText)findViewById(R.id.entry);
  final Button button = (Button) findViewById(R.id.ok);
  final Intent i=new Intent(this , RSSReder.class);
  final String choice=Urlis.getText().toString();
  
  i.putExtra("key", choice);
  button.setOnClickListener(new View.OnClickListener() {
      public void onClick(View v) {
          startActivity(i);
      }    
  });  
  </code></pre>
  
  <p>and for called activity is </p>
  
  <pre><code>public class RSSReder extends Activity implements OnItemClickListener {
  
      public String RSSFEEDOFCHOICE;
      public final String tag = "RSSReader";
      private RSSFed feed = null;
  
      /** Called when the activity is first created. */
  
      public void onCreate(Bundle abc) {
          super.onCreate(abc);
          setContentView(R.layout.next1);
  
          Intent i = getIntent();
          RSSFEEDOFCHOICE =i.getStringExtra("key");
  
          // go get our feed!
          feed = getFeed(RSSFEEDOFCHOICE);
  
          // display UI
          UpdateDisplay();
  
      }
  }
  </code></pre>
  
  <p>is there anything i need to change or remove.</p>