Detect when Completion word is Selected???

rgately

Member
Licensed User
Longtime User
Greetings,

Does anyone know of a way to detect when a completion word is selected from the Android keyboard? My app needs to know so that the word can be spoken without having to follow it with a space or punctuation.

Thanks for any help or suggestions!
 

rgately

Member
Licensed User
Longtime User
Erel, thanks for your reply.

I use the EditText_TextChanged event, but when the completion word is selected from the Android keyboard, the TextChanged event has no way of knowing if the word is finished because there is no space or punctuation at the end of the word. I can detect word boundaries (space and punctuations) if they exist.

I'll keep working on it.
 
Upvote 0

mc73

Well-Known Member
Licensed User
Longtime User
I noticed that many times auto-complete leads to a word with more than 1 character than the text typed. Thus you could use the old.length and new.length in order to say (of course not 100% accurately) that an auto-complete word was chosen.
However, from my experience, but I may be a bad typer, usually in small devices, I tend to make a lot of mistakes. Sure it is appropriate to spell the word before a punctuation sign?
 
Upvote 0

rgately

Member
Licensed User
Longtime User
mc73,

Thanks for your reply. What you described is what I've been thinking too. I will probably have to add more code than I'd like so that the result will be accurate.

Too bad there isn't some feedback from the OS.

Thanks!
 
Upvote 0
Top