- Home /
Why my TouchScreenKeyboard minimizes and open at Random time.
I am creating an android game in which i allow user to enter some text in textarea..user needs to touch the textArea for opening the touchscreenKeyboard..Now my problem is the touchscreen keyboard minimizes automatically after random time ,Only in some devices.. I check the logcat there is no error... keyboard minimizes and open at random delay even when no input is given to keyboard.
And it also Takes time open the keyboard at start. pls help.
what i notice right now, the devices which are generating problem taker 78 mb as total space for my game,while others take 52 mb.. is large memory allocation creating this problem???? please help
Answer by Qasem2014 · Jan 02, 2015 at 12:32 PM
its my script that don't cause problem :
var stringToEdit : String[];
function Start()
{
stringToEdit = new String[1];
for (var i = 0; i < stringToEdit.Length; i++)
{ stringToEdit[i] = String.Empty; }
}
// Read From Input
function OnGUI()
{
GUI.BeginGroup (new Rect(SW/16,10,SW/4,SH/10));
for (var i = 0; i < stringToEdit.Length; i++)
{
stringToEdit[i] = GUILayout.TextField
(stringToEdit[i], 10, GUILayout.Width(SW/4),
GUILayout.Width(SW/4),
GUILayout.Height(SH/10));
}
GUI.EndGroup();
}
// Write input to a variable - call this function when press a button
function Refister()
{
var NameString: String;
for (var i = 0; i < stringToEdit.length; i++)
{ NameString = NameString + stringToEdit[i].ToString(); }
}
i hope it helps you . its work on mobile fine :)
Your answer
Follow this Question
Related Questions
Android: How can I Minimize/Maximize Apps? 0 Answers
Saving textarea to textfile on Android 0 Answers
Android how to moveTaskToBack and minimze the app but not terminate it? 3 Answers
In androids about input of TextArea and TextField 0 Answers
Android, Game doesn't minimize when pressing power. -1 Answers