Starting an ACTION_VIEW activity to open the browser, how do I return to my app?
<p>In my app i need to open the bank's page, to make the user able to pay.
Reading the Android documentation I see that I should use an <code>ACTION_VIEW</code> (and not a WebView) to accomplish this.</p>

<pre><code> Uri uri = Uri.parse("http://www.example.com");
 Intent intent = new Intent(Intent.ACTION_VIEW, uri);
 startActivity(intent);
</code></pre>

<p>My question is: After the user is done with the payment, <strong>how can i get back to the app</strong>?</p>

<p>I mean, I'd like to do something like</p>

<pre><code>startActivityForResult(intent, RESULT_CODE);
</code></pre>

<p>to open the bank's site, and then get back to the app when the user is done, using the</p>

<pre><code>protected void onActivityResult(int requestCode, int resultCode, Intent data) {
</code></pre>

<p>callback to handle the result of the payment.</p>

<p>And, am I following the right way? Or is there any other way to accomplish this?</p>
