I override the OnBackPressed function inside my activity, but it is not called. In other actions, it works fine. Here is my method:
@Override public void onBackPressed() { Log.e("back",""+1); UserPage.getstate().finish(); Intent i=new Intent(CreateGroup.this,UserPage.class); i.putExtra("title11","dd"); startActivity(i); finish(); }
This method is not called, and by default, OnBackPresssed is called every time I click the back button.
Doyou evenlift
source share