Android Back-Button Exit Confirmation

Do anyone know how to add a confirmation dialog for Android MV deployment?
Right now if the user presses the back button from Android phone, the game will automatically close without a warning.

That is kinda bad if someone accidentally pressed the back button.
Please help/share if you know how to change the behavior. 👋

Thank you!
This plugin might help you. Just follow the instructions there: http://biud436.tistory.com/19
Or the easiest way is to build APK file by this software: https://websitetoapk.com/index.html (The free version does not let you configure much).
@JamesRyan hey there, thank you for the suggestion, I have tried the plugin but I can' seem to get it works. Do you have tried and make it works?
Unfortunately I haven't tried it, too. But i once used that software "Website 2 APK" to build my APK file for testing purpose and it had an option to implement confirmation on pressing back button.
This is a default feature of the MV Android Client (a project I am the author of), so if you deploy your project to Android using that then you'll automatically gain the exit confirmation support.

Here's a link to the project: https://github.com/AltimitSystems/mv-android-client

It also supports changing the back button to call the 'cancel' command for your game, so it can open and close the menu. It's totally open-source too so you can look at the code and modify it however you see fit.

I'm waiting for the Tutorial to pass moderation on this forum, but if you go on the project page linked above you'll see a link to the main tutorial page. There's also a Steam guide available.

Original thread: https://forums.rpgmakerweb.com/threads/android-back-button-exit-confirmation.84062/