Detect if user has completed Intent.ACTION_VIEW or just hit BACK
<p>I have a webview and on click on some banner I am sending Intent.ACTION_VIEW to open browser or whatever user finds suitable like this:</p>

<pre><code>  w.setWebViewClient(new WebViewClient(){
         @Override
            public boolean shouldOverrideUrlLoading(WebView view, String url) {
             if (url != null &amp;&amp; url.startsWith("http://")) {
                    view.getContext().startActivity(
                        new Intent(Intent.ACTION_VIEW, Uri.parse(url)));
                    return true;
                } else {

                    return false;
                }


            }

     });
</code></pre>

<p>Now what I want is to find a way to know if user just hit back button before opening browser or he actually opened browser. I found <a href="http://stackoverflow.com/questions/8793825/successful-share-intent-for-android">this</a> question but no solution there</p>
