title: Listen for button click inside WebView and implement certain logic behind it
body: <p>I'm showing a <code>WebView</code> inside my application. <code>WebView</code> contains a <code>&quot;Return&quot;</code> button. I want to listen for this button click and finish the <code>activity A</code> and open <code>activity B</code> if this happens.</p>
  <p>To achieve this, I've come up with two solutions:</p>
  <p>A) Add <code>WebViewClient</code> listener and just execute my logic on <code>shouldOverrideUrlLoading</code> callback.</p>
  <p>B) Use <code>Deep Links</code></p>
  <p>Which of these two solutions are <strong>more correct</strong> and <strong>why</strong>? I think deep links are usually used when you want to go from <em>other mobile app</em> to <em>X destination</em> <em>in your</em> app and not other way around. Am I mistaken something here?</p>