Web View Back Button Problem In Android
Hai friends, I implemented web view in one of my activity, when i am trying to go to previous activity(by clicking the back button) whole application is terminating. In the back bu
Solution 1:
Try this.
@Override
public boolean onKeyDown(int keyCode, KeyEvent event) {
    if ((keyCode == KeyEvent.KEYCODE_BACK) && webview.canGoBack()) {
        webview.goBack();
        return true;
    }
    return super.onKeyDown(keyCode, event);
}
Post a Comment for "Web View Back Button Problem In Android"