1 @Override 2 public boolean onKeyDown(int keyCode, KeyEvent event) { 3 if (keyCode == KeyEvent.KEYCODE_BACK) { 4 moveTaskToBack(false); 5 return true; 6 } 7 return super.onKeyDown(keyCode, event); 8 }
1 @Override 2 public boolean onKeyDown(int keyCode, KeyEvent event) { 3 if (keyCode == KeyEvent.KEYCODE_BACK) { 4 moveTaskToBack(false); 5 return true; 6 } 7 return super.onKeyDown(keyCode, event); 8 }
转载于:https://www.cnblogs.com/androidxiaoyang/p/3821148.html