How to configure the back button action on android?

Asked

Viewed 6,178 times

3

How to perform certain activities in the app when the back button is heard?

1 answer

10


Hello friend!

@Override
public void onBackPressed() 
{
    //Seu código aqui dentro
}

Browser other questions tagged

You are not signed in. Login or sign up in order to post.