Android OnBackPressed() Is Not Being Called?
Answer : This question is already answered, but I feel to clear something here in this topic. Most comments and answeres point out to use super.onBackPressed() and that this is the cause of the not working method onBackPressed() . But that is not correct and important to let other beginners know. The method onBackPressed() does not need to use super.onBackPressed() . onBackPressed() also works if somebody, for example, comment super.onBackPressed() out. As the questionier has written, he won´t use super.onBackPressed() because it will close the activity. So, the cause of this why it isn´t working, could be seperated into three possible causes: The Log doesn´t work because of a wrong filter in the logcat console The Toast dosn´t work because of the wrong passed context The OS is implemented wrong by the supplier. Usually, the toast works by passing the correct context. In the case of questioner, simply passing this . @Override public void onBackPressed() { Log.d...