I have override the OnBackPressed
function inside my activity, but it's not being called. On other activities it's working 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 being called, and the default OnBackPresssed
is called every time i press the back button.