- Home /
Android Soft Keyboard and hideInput
Hey Everyone, I have a rather strange bug that I've been trying to fix for some time now. Basically, on some android phones, for example, htc wildfire s, the touchscreenkeyboard will not show on the first call Open() call if TouchScreenKeyboard.hideInput = true. But, the second time it is called, it shows up just fine... If TouchScreenKeyboard.hideInput = false, everything works fine, except for the fact that the input field covers part of my game.
Here are bits of relevant code:
This version works every time, but input field covers part of game..
[CODE]private var keyboard : TouchScreenKeyboard; private var userName: String = "";
keyboard = TouchScreenKeyboard.Open(userName,TouchScreenKeyboardType.URL,false, false, false, false, userName);[/CODE]
This version works only the second time that TouchScreenKeyboard.Open() is called.
[CODE]private var keyboard : TouchScreenKeyboard; private var userName: String = "";
TouchScreenKeyboard.hideInput = true; keyboard = TouchScreenKeyboard.Open(userName,TouchScreenKeyboardType.URL,false, false, false, false, userName);[/CODE]
Any suggestions?