Sending data between two Activities using Explicit Intents
<p>I have two Activities - Activity A, and Activity B. The user is presented with Activity A on opening the app.</p>

<p>When you click a button on Activity A, it opens Activity B. </p>

<p>In Activity B, the user is prompted to add some text into an EditText field, which is stored in a TextView object.</p>

<p>When you click a button on Activity B, it redirects you to Activity A, and passes the data stored in the TextView object to Activity A to display on the screen.</p>

<p>My assumed logic:</p>

<p>Activity A constructs a new Intent and passes in Activity B.</p>

<p>Activity A calls startActivityForResult(intent).</p>

<p>Activity B then calls getIntent(), but does nothing with it, because there is nothing required(?)</p>

<p>In onClick() method, Activity B creates a new Intent, passing in Activity A. Activity B puts its results in the new Intent (i.e. using intent.putExtra() )</p>

<p>onActivityResult() in Activity A is called.</p>

<p>I'm wondering, if this is the right logic?</p>