Forge already has Android Back Button plugin, but it's more of example, not ready to use plugin.
So, here I am, providing simple and ready to use Android Back Key handler plugin.
This plugin also works inside Outsystems Now.
Steps to use:
1. add/manage dependency to this plugin
2. drag AndroidBackKeyHandler to your screen (or Layout block if you want it global)
3. set parameter IsExitApp or event handler for event OnAndroidBackKey
You have 3 options for handling Android back key:
1. Disable completely: put it into Layout block, don't set handler for event OnAndroidBackKey
2. Exit on Android Back Key: put it in your desired screen (usually Home screen), set IsExitApp to true
3. Custom Handling: put it in your desired screen, set handler for event OnAndroidBackKey (for example: go to other screen)
I am accepting small donation using Paypal at harlins@gmail.com