How to use back button to go back with XWalkView of CrossWalk, or disable it?
问题 I use below code to go back in webview at first try. But for the low render ability, I used XWalkView replace the WebView. public boolean onKeyDown(int keyCode, KeyEvent event) { WebView mWebView = (WebView) findViewById(R.id.webview); if (event.getAction() == KeyEvent.ACTION_DOWN) { switch (keyCode) { case KeyEvent.KEYCODE_BACK: if (mWebView.canGoBack()) { mWebView.goBack(); } else { finish(); if (MainActivity.mTencent.isSessionValid()) { MainActivity.logout(); } } return true; } } return