android 禁用返回键

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



你可能感兴趣的:(android 禁用返回键)