How to detect the "hide keyboard" key on soft BB?

Monkey Targets Forums/Android/How to detect the "hide keyboard" key on soft BB?

MikeHart(Posted 2012) [#1]
I would like to detect when the user pressed the little "hide keyboard key on the bottom left of an Android soft keyboard. Is this possible?


Rixarn(Posted 2012) [#2]
Have you found a solution for this? I'm also having trouble hiding the keyboard ... because I dont know how to catch the event of the hide keyboard button pressed


MikeHart(Posted 2012) [#3]
Sadly not.


JIM(Posted 2012) [#4]
There's some info here: http://developer.android.com/reference/android/view/inputmethod/InputMethodManager.html

And more here: http://stackoverflow.com/questions/3425932/detecting-when-user-has-dismissed-the-soft-keyboard

But you have to get your hands dirty in java code. Yuck!


Rixarn(Posted 2012) [#5]
Thank you for the info Jim! I'll give it a try :)


MikeHart(Posted 2012) [#6]
Is this solution JIM has linked to usable if you don't have a textfield but just want to read the keyboard? Sounds this solution needs a native textfield, but I might be wrong here.