How do I stop the BACK BUTTON in ANDROID MOBILE??

could anyone tell me how to disable exiting function when pushing the BACK BUTTON on the mobile phone?

I finally made an apk that is running well now but pushing back button and exiting is just very disturbing when gaming 🙁

people will be kicked out of the game suddenly pushing this by mistake ...

a choice that says "do you want to exit the game? yes/ no " will be very helping.. the players can be alarmed.

I think to do this, back button function should be coded in the cordova packaging or something.

but I got no clue how to do this.

I'm using Manual method of rpg mv help file not XDK.

if you know how to do this... plz tell us .....!

thank you !
Good ideia man. I would like it too. A configurable back button, so you can choose what it do. (goes out or serves as the escape button)
@yongilcool

I found these two: 

http://stackoverflow.com/questions/8430805/android-clicking-twice-the-back-button-to-exit-activity

http://stackoverflow.com/questions/22609411/over-ride-the-back-button-of-android-device-through-phonegap-in-javascript

But didn't test any of them yet. Maybe you shoul just put these lines in a plugin and see what happens?

Original thread: https://forums.rpgmakerweb.com/threads/how-do-i-stop-the-back-button-in-android-mobile.51467/