When I run my Codenameone-App on an android-device, pressing the hardware-back-button stops/exits my app. I added a back-Command to the form - but this does not work. The hardware-back-button works as expected, when I call a second form from the first form and press the hardware-back-button there (the second form closes and the first is shown).
How can I prevent, that the App exits when the hardware-back-button is pressed on the first form?