x


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?

more ▼

asked May 05 '12 at 08:15 PM

Droid gravatar image

Droid
1 1 1 1

(comments are locked)
10|3000 characters needed characters left

0 answers: sort voted first
Be the first one to answer this question
toggle preview:

Up to 2 attachments (including images) can be used with a maximum of 524.3 kB each and 1.0 MB total.

Follow this question

By Email:

Once you sign in you will be able to subscribe for any updates here

By RSS:

Answers

Answers and Comments

Topics:

x2612
x202
x9

asked: May 05 '12 at 08:15 PM

Seen: 878 times

Last Updated: May 05 '12 at 08:15 PM