Copy link to clipboard
Copied
Try this on an android 4.0 device.
Put a StageTextInputSkin TextInput (same issue with stagetextarea).
Click it to activate the softkeyboard. Click the back button which will minimize the softkeyboard. Click the back button again and it will close the app.
does anyone know how to prevent the app from closing?
Copy link to clipboard
Copied
Do you have a listener in place to capture the Back key? If you don't then this behaviour is exactly correct.
Chris
Copy link to clipboard
Copied
Oh sorry I forgot to give abit more detail.
first off push a few views onto the viewnavigator. so the default action would be to pop a view. but it just closes the app as if the home button was pressed.
the stagetextinputskin first does what the default android textinput action is when the back button is pressed. so you can't do the preventDefault stopImmediatePropagation to prevent these actions.
Copy link to clipboard
Copied
Hy,
I posted a working solution that I can successfully adopted to close the SoftKeyboard without closing the app when you press the back button on android also if there are multiple view button returns to the previous view link to the post:
http://forums.adobe.com/thread/940106
Franco
Find more inspiration, events, and resources on the new Adobe Community
Explore Now