I was able to achieve some success hiding the keyboard that was raised by agrahams custom dialogs by placing a DoEvents before and after the ph.HideKeyboard statement. And it also seemed to help a little to do a little processing, like checking the validity and format of an entered number, before trying to hide it. Like this
B4X:
DoEvents
ph.HideKeyboard(Activity)
DoEvents
Erel, is there a chance you might include ph.ShowKeyboard in your next release?
Andrew, would you be so kind to show us a ShowKeyboard workaround using your Reflection object?
The workaround I used to this is using the keygen library to send a 4. It works on a separate thread but basically you send yourself a back_key keypress. This should hide the keyboard. Perhaps other devices could use something other than 4, so use the keypress sub to see what your back key generates.