Back Buttom Press to close app?

I want to close the app when the back button is pressed in one of the screens. I am not familiar with how to do so? Can someone help me.

7 posts were merged into an existing topic: [Solved] Can I use a button to close an app?