Listening in Javascript to back button in Android
<p>I have a HTML5 app in Android. I would like to override this</p>

<pre><code>@Override
public void onBackPressed() {
} 
</code></pre>

<p>so the js file, which has a method called back(), can "listen" when the user taps the back button in Android, in order to replicate the navigation behaviour that is currently in my app inside HTML5 from the WebView in Android.</p>

<p>I thought about creating a JavaScriptInterface, but I really don't see which could be the communication process to solve this. Probably it's not my day. Thanks.</p>
