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 }
2022-07-25 10:46:07
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 }