Sorry your browser is not supported!

You are using an outdated browser that does not support modern web technologies, in order to use this site please update to a new browser.

Browsers supported include Chrome, FireFox, Safari, Opera, Internet Explorer 10+ or Microsoft Edge.

Android / StartTextInput - Device keyboard behaving odd

Author
Message
ApkGames.Guru
5
Years of Service
User Offline
Joined: 25th Oct 2013
Location: England, UK
Posted: 27th Jul 2016 11:38
Hi.

I've an issue when passing a text value to act as a default value in an input box. When the keyboard pops up on a device, the default/starting text is shown, but you are unable to delete this and can only type new text that adds to it. You can then delete the new text, but only as far as the default.

For example, if I call the function below with "abc", "abc" is shown, but I cannot delete the characters. If then I type "def", I can delete this, but only as far as "abc"

This is only on devices, it works fine in windows under the ide.

Anyone encountered this and perhaps could help with a workaround?

Function Input(textin$)

SetCursorBlinkTime(0.5)
SetTextInputMaxChars(20)
StartTextInput(textin$)

Do
Sync()
state=GetTextInputState()
c=GetLastChar()

if GetTextInputCompleted()
if GetTextInputCancelled()
text$=textin$
exit
else
text$=GetTextInput()
exit
endif
endif
Loop

StopTextInput()
sync()

EndFunction text$
play.apkgames.guru
SamuGames
AGK Developer
8
Years of Service
User Offline
Joined: 18th Aug 2010
Location: Canada
Posted: 11th Sep 2016 21:24
Having the same issue on 2 separate Samsung Galaxy S6 devices with different versions of Android OS running, but I'm using EditBoxes rather than the StartTextInput and having the same issue.
Robert Janes (Samu Games)
http://www.samugames.com/artifact
smallg
Valued Member
13
Years of Service
User Offline
Joined: 8th Dec 2005
Location: steam
Posted: 1st Oct 2016 12:24 Edited at: 1st Oct 2016 12:27
i can not type numbers into the box on android but it works fine in windows, is this intended?
but for me letters work fine on android, try it like this
life\'s one big game
spec= 2.6ghz, 1gb ram, 512mb gpu, directx 9.0c, dbpro and classic

Login to post a reply

Server time is: 2019-02-20 18:34:52
Your offset time is: 2019-02-20 18:34:52