Android cannot exit webview with back button
<pre><code> @Override
 public boolean onKeyDown(int keyCode, KeyEvent event) {
     // Check if the key event was the BACK key and if there's history
     if ((keyCode == KeyEvent.KEYCODE_BACK) &amp;&amp; myWebView.canGoBack() {
         myWebView.goBack();
         return true;
     }
     // If it wasn't the BACK key or there's no web page history, bubble up to the default
     // system behavior (probably exit the activity)
    return super.onKeyDown(keyCode, event);
 }
</code></pre>

<p>This piece of code was taken from <a href="http://developer.android.com/guide/webapps/webview.html" rel="nofollow">http://developer.android.com/guide/webapps/webview.html</a>. With this code, after I enter the web view, I cannot exit of the web view unless I press the back button twice really fast. Is there a way to just press the back once and exit the web view?</p>
