首页 > 代码库 > android 禁用返回键

android 禁用返回键

@Override    
public boolean onKeyDown(int keyCode, KeyEvent event) {  
    if(keyCode == KeyEvent.KEYCODE_BACK){      
        return  true;
    }  
    return  super.onKeyDown(keyCode, event);    
}



android 禁用返回键