I would like to know how do I detect in an application that the user clicked the "Back" button native to the device. Well, I need to take action if that happens.
I would like to know how do I detect in an application that the user clicked the "Back" button native to the device. Well, I need to take action if that happens.
Using the method:
@Override
public void onBackPressed() {
//aqui você controla o voltar fisico do aparelho
}