Skip to main content
Known Participant
Jun 21, 2012 7:15 PM UTC
Question

StageTextInputSkin press android ICS back button while in textinput without softkeyboard closes app

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?

This topic is closed to new replies. Start a new post to keep the conversation going.

3 replies

Participant
Mar 5, 2013 10:27 PM UTC

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

Translate
Chris W. Griffith
Community Expert
Community Expert
Jun 21, 2012 9:16 PM UTC

Do you have a listener in place to capture the Back key? If you don't then this behaviour is exactly correct.

Chris

Translate
Known Participant
Jun 26, 2012 9:24 PM UTC

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.

Translate