Tech

Android : Navigation Back in WebView

Use Following Code to Implement Navigation Back Feature:  @Override public boolean onKeyDown(int keyCode, KeyEvent event) { if ((keyCode == KeyEvent.KEYCODE_BACK) && myWebView.canGoBack()) { myWebView.goBack(); // Go to previous page return true; } // Use this as else part return super.onKeyDown(keyCode, event); }