[SOLVED] Android - screen freezes when pressing the "Back" button

Hello Guys,
When I run a JME3 Android game and press the devices’ Back button I get a confirmation dialog with a Yes/No buttons. When I press any of the buttons the application get stuck / freezes .
So… Is there a way to eliminate that dialog and just exit the app?

Thanks!

Edit: It seems to be fixed… I upgraded to 3.4.0 stable today and it’s working fine now…

2 Likes

Navigating back to this, there is a new feature added on jme-3.5.0 for jmeSurfaceView, it enables this analogy via the flag showEscExitPrompt and its applied to all means of request close application :
https://javadoc.jmonkeyengine.org/v3.5.1-stable/com/jme3/app/jmeSurfaceView/JmeSurfaceView.html#setExitOnEscPressed-boolean-

1 Like

excellent! thanks for the info

1 Like