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 / Swype text input ignored.

Author
Message
CJB
AGK Developer
Recently Online
Joined: 10th Feb 2004
Location: Essex, UK
Posted: 24th Aug 2012 03:15
Hi all,

How do I get Swype text input? If I'm using Swype on my Android device (Galaxy s2 - ICS), the text input box remains empty, but when hitting individual keys, it works fine.

Here is a quick example:

+ Code Snippet

Thank you!

p.s. I love AGK already! Great work TGC! can't wait for 3d

Ancient Lady
User Offline
Joined: 17th Mar 2004
Location: Anchorage, Alaska, USA
Posted: 24th Aug 2012 14:33
From what I can see on the web, Swype Text is an add on to an Android device and not the built-in pop-up keyboard.

If that is the case, then it is possible that AGK won't recognize the swiping on the keys as input.

Cheers,
Ancient Lady
AGK Community Tester
CJB
AGK Developer
Recently Online
Joined: 10th Feb 2004
Location: Essex, UK
Posted: 24th Aug 2012 15:36 Edited at: 24th Aug 2012 15:37
A little more testing has shown the voice-to-text input method also doesn't work (which I think is also a fairly standard input method for Android users).

I'll do some digging and figure this out! I have found an article
that descirbes a way to do it
Quote: "use an Android TextView in an AlertDialog from the Java code and send text with JNI to your (native C++) edit box;"
which may help point me in the right direction.

If anyone has already cracked this problem, I'd love to know your solution! Thanks.

CJB
AGK Developer
Recently Online
Joined: 10th Feb 2004
Location: Essex, UK
Posted: 26th Aug 2012 12:33
Okay, so Android stylee text input is out (for now). I'll put that little project on the back burner until its fixed.

MrValentine
AGK Backer
User Offline
Joined: 5th Dec 2010
Playing: Playing
Posted: 28th Aug 2012 07:53
Quote: "Okay, so Android stylee text input is out (for now). I'll put that little project on the back burner until its fixed."


As SWYPE is not a native feature, I think that backburner will not get off the shelf for a while...

Food for thought

CJB
AGK Developer
Recently Online
Joined: 10th Feb 2004
Location: Essex, UK
Posted: 28th Aug 2012 08:47
Native or not, when you use "StartTextInput", the Swype keyboard appears, along with the little microphone button for Voice-to-text (which when pressed asks for you to start talking etc. but doesn't pass any text back to the app). I don't mind so much that they aren't or even won't be supported in AGK, but if not, then the virtual keyboard presented to the user should be a basic no-frills one-key-at-a-time virtual keyboard, otherwise it renders all the text input commands quite useless.

MrValentine
AGK Backer
User Offline
Joined: 5th Dec 2010
Playing: Playing
Posted: 28th Aug 2012 09:00
Pwrsonally I see it no different than a souped up multimedia keyboard with media keys... They are there but do not do anything in all apps...

Digital Awakening
AGK Developer
Recently Online
Joined: 27th Aug 2002
Location: Sweden
Posted: 28th Aug 2012 11:38
Replacing the keyboard is quite common on Android. It shouldn't make a difference which one you are using. I use Swift key but have not tried it in AGK since the text input is so buggy on Android. Text input in AGK should not be any different than a web browser etc.

Ancient Lady
User Offline
Joined: 17th Mar 2004
Location: Anchorage, Alaska, USA
Posted: 28th Aug 2012 14:56
CJB, you did say in your original post that tapping on individual keys works. If someone doesn't have Swype text installed, they won't see that keyboard.

AGK simply presents whatever keyboard is set up to display on the device.

Cheers,
Ancient Lady
AGK Community Tester
CJB
AGK Developer
Recently Online
Joined: 10th Feb 2004
Location: Essex, UK
Posted: 29th Aug 2012 08:47
@ Digital Awakening: I Agree completely! Text input in AGK should not be any different than any other Android app.

@ Ancient Lady: I don't want to have to tell my users to change their virtual keyboard settings to basic no-frills mode before using my app. No other Android app I have ever used tells me I have to change my virtual keyboard settings, so neither should mine. AGK is set up to present whatever keyboard is installed, but it isn't set up to use it, which is a problem.

It is an issue that will need addressing at some point.

Ancient Lady
User Offline
Joined: 17th Mar 2004
Location: Anchorage, Alaska, USA
Posted: 29th Aug 2012 15:55
CJB, since the keyboard popped up automatically and you were able to click on the keys, you don't have to tell your customers anything. The keyboard worked, it just didn't accept the swipes as input.

The app worked without any changes on your part. You just can't use non-standard inputs (ie, inputs not available on other devices through the keyboard).

Cheers,
Ancient Lady
AGK Community Tester
MrValentine
AGK Backer
User Offline
Joined: 5th Dec 2010
Playing: Playing
Posted: 29th Aug 2012 16:40
To be quite frank... You should not accept SWYPE input as it is highly insecure and a security risk... It even tells you so...

And dont start with voice input either...

Simple hardware(default) input is more than adequate...

CJB
AGK Developer
Recently Online
Joined: 10th Feb 2004
Location: Essex, UK
Posted: 4th Sep 2012 14:24
Okay. If it is unlikely to get fixed, then what is the best way for me to tell my users to turn off their enhanced keyboard features? With a splash screen?

... actually I think I'd rather get it working properly. I'll put some thought into it and let you know how I get on.

MrValentine
AGK Backer
User Offline
Joined: 5th Dec 2010
Playing: Playing
Posted: 4th Sep 2012 20:51
Quote: "... actually I think I'd rather get it working properly. I'll put some thought into it and let you know how I get on.
"


Good man!

Ancient Lady
User Offline
Joined: 17th Mar 2004
Location: Anchorage, Alaska, USA
Posted: 17th Sep 2012 17:13
Your users should not need to turn off their enhanced keyboard features as long as their keyboard returns keys pressed individually.

Cheers,
Ancient Lady
AGK Community Tester
Rich Dersheimer
AGK Developer
User Offline
Joined: 1st Jul 2009
Location: Inside the box
Posted: 19th Sep 2012 17:39
CJB, you could design your own keyboard/input routine, see my thread here.

Login to post a reply

Server time is: 2016-08-27 18:48:30
Your offset time is: 2016-08-27 18:48:30