G
G
goodTimes2017-03-05 22:04:16
Java
goodTimes, 2017-03-05 22:04:16

How can I make it so that when I click on the back button, the application does not collapse?

I use NavigationDraw and all menu items are fragments and, accordingly, when I press the back button, I exit the application, can I somehow deactivate this button?

Answer the question

In order to leave comments, you need to log in

2 answer(s)
A
Andrey Myvrenik, 2017-03-05
@gim0

Override Activity#onBackPressed() method

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question