android webview点击返回键返回上一级activity

android webview点击返回键返回上一个activity

1 @Override
2     public boolean onKeyDown(int keyCode, KeyEvent event) {
3         // TODO Auto-generated method stub
4         if (keyCode == KeyEvent.KEYCODE_BACK && event.getRepeatCount() == 0) {
5             return true;
6         }
7         return super.onKeyDown(keyCode, event);
8     }

 

android webview点击返回键返回上一级activity,布布扣,bubuko.com

android webview点击返回键返回上一级activity

上一篇:Android判断网络连接状态


下一篇:课务IOS概述_1