title: How to get control back to application (outside Webview)?
body: <p>I am using <code>Webview</code> in an Android activity (say <strong>Activity B</strong>) like this</p>
  
  <pre><code>webview = new WebView(this);
  webview.setWebViewClient(new WebViewClient());
  setContentView(webview);
  webview.loadUrl("http://mywebpage");
  </code></pre>
  
  <p>So, the webview opens a webpage in the activity, and the expected functionality is  that user can browse different web pages following the links in the webview. (The website is of the mobile application, or in other words, is in my control).</p>
  
  <p>Now, after the user is done checking out the webpages, how do I take the user to another activity? (if it helps the activity - <strong>activity A</strong> - will be the same from where the activity B containing the webview was called). </p>
  
  <p>So can I, from the webview decide to finish the current activity (B) so the user is back to activity A? Or if possible, directly start another activity which could be activity A or some other activity C based on some event on the webpage?</p>
  
  <p>Or will I need to provide a button outside the Webview on Activity B from which I can handle the flow? </p>
  
  <p>Or there is a better approach?</p>