Android 禁用返回键
重写dispatchKeyEvent方法即可
@Override
public boolean dispatchKeyEvent(KeyEvent event) {
if (event.getKeyCode() == KeyEvent.KEYCODE_BACK && isTiming) {
return true;
}
return super.dispatchKeyEvent(event);
}