@Override public boolean onKeyDown(int keyCode, KeyEvent event) { if(keyCode == KeyEvent.KEYCODE_BACK){ Toast toast = Toast.makeText(MainActivity.this, "back", Toast.LENGTH_SHORT); toast.show();} return true; }
@Override public boolean onKeyDown(int keyCode, KeyEvent event) { if(keyCode == KeyEvent.KEYCODE_BACK){ Toast toast = Toast.makeText(MainActivity.this, "back", Toast.LENGTH_SHORT); toast.show();} return true; }