According Corona Lab’s members told us, there is no event can be generated while keyboard dismissing, so corona sdk cannot detect when the keyboard dismissing. But all the popular existing android apps, such as facebook, twitter, LINE, etc, those apps without keyboard dismissing problem.
I don’t think native Android doesn’t provide anything to handle this issue, the problem is, will Corona Lan want to solve this ?
Check this api from android sdk: it proves that Android really provide a solution to capture “BACK” key.
====================================================================================
public boolean onKeyPreIme (int keyCode, KeyEvent event)
Added in API level 3
Handle a key event before it is processed by any input method associated with the view hierarchy. This can be used to intercept key events in special situations before the IME consumes them; a typical example would be handling the BACK key to update the application’s UI instead of allowing the IME to see it and close itself.
Parameters keyCode The value in event.getKeyCode(). event Description of the key event.
Returns
- If you handled the event, return true. If you want to allow the event to be handled by the next receiver, return false.