Application should give a prompt on pressing back button
<p>I am developing an android application. I wish that when I press back button in my application, it should give me a prompt(kind of alert dialog) if I really wish to exit.
I dont know where to put this alert dialog and what to write in the Yes button, where user wants to quit the application. Please help me.</p>
