Open top menu



In this bloag implement  How to Back WebView to Our android app. try this code



// To handle "Back" key press event for WebView to go back to previous screen.
   @Override
   public boolean onKeyDown(int keyCode, KeyEvent event)
   {
       if ((keyCode == KeyEvent.KEYCODE_BACK) && webview.canGoBack()) {
        webview.goBack();
           return true;
       }
       return super.onKeyDown(keyCode, event);
   }
Tagged

0 comments