How to pass EditText to another activity?
<pre><code>Intent intent = new Intent(this,Name.class);
intent.putExtra("key", et.getText().toString());
startActivity(intent);

Intent intent = getIntent();
String str = intent.getStringExtra("key");
tv.setText(str);
</code></pre>

<p>From using above code I can get a string value at other activity, but I need <code>editText</code> object at another activity.</p>

<p>can anyone give Idea ?</p>

<p>Thanks</p>
