Android Question IME.HideKeyboard not working API 28

JohnC

Expert
Licensed User
Longtime User
I am displaying a dialog that asks for text input, when the dialog closes, I have the below line to hide the keyboard:
B4X:
IME.HideKeyboard

It does not hide the keyboard.

Another thread suggested disabling the edittext view, but since it was in the dialog, it no longer exists.

Another thread suggested adding:
B4X:
Sleep(100)

That did not work - I even tried "Sleep(1000)" still no good.

What worked was:
B4X:
IME.HideKeyboard
DoEvents

Why does it only work with a deprecated function?
 

JohnC

Expert
Licensed User
Longtime User
I'm using the "Dialogs" library v2.92

But if the Dialog was dismissed BEFORE the IME.HideKeyboard, how can it still effect/hold the keyboard on the screen?
 
Upvote 0

noeleon

Active Member
Licensed User
i even put 2 doevents after ime.hidekeyboard because sometimes virtual keyboard does not hide with only 1 doevents
 
Upvote 0
Top