title: How to automatically close browser after launching a download link from Android WebView?
body: <p>In my WebView, there are several indirect download links which look like <code>https://www.example.com/download/1234</code>. When I open the link on computer browser, it downloads the PDF file. When I tap the link on the WebView, it does not download.</p>
  
  <p>Therefore, I set download listener to my webview, and inside onDownloadStart, I use <code>startActivity(new Intent(Intent.ACTION_VIEW, Uri.parse(url)));</code> </p>
  
  <p>It launches a browser, and the browser starts downloading the PDF file. The browser stays there unless I press the phone Back button.</p>
  
  <p>How to close the browser automatically once the download starts and return back to the application?</p>