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

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

 @Override
public boolean onKeyDown(int keyCode, KeyEvent event) {
// TODO Auto-generated method stub
if (keyCode == KeyEvent.KEYCODE_BACK && event.getRepeatCount() == 0) {
return true;
}
return super.onKeyDown(keyCode, event);
}
上一篇:DBUtils+C3P0连接池


下一篇:git clone 时候出现Please make sure you have the correct access rights and the repository exists.问题解决