Include Word Suggestions in Android Keyboard
Asked Answered
X

2

3

Hi I want to include word suggestions in my custom keyboard.

e.g if I write wi it should suggest me whether you want to write "winner" "winks" "wilson" etc

Please guide me.

Thanks

Xever answered 24/5, 2011 at 8:6 Comment(2)
i hope this will help.. :)Guerrilla
Possible duplicate of How to include suggestions in Android KeyboardAbatis
E
2

Here is the real answer to this question.

It was hard for me to find:

First you need to:

Add Words to Android's UserDictionary

By having the words in the dictionary, they will show up in suggestions.

If you want to exclusively show your words however, then something like the auto-complete dropdown idea is a better fit (that the other answers linked)

Erickson answered 25/1, 2014 at 4:56 Comment(1)
So you have to manually add words first? Seems inefficient, as there are thousands of words in the English language...Streetcar
C
1

You can search for source code for android keyboard that are having this suggestion bars, i.e. download source for android gingerbread 2.3 keyboard source code, as android is opensource you can get the code easily.

Coretta answered 1/6, 2011 at 8:13 Comment(2)
I dont think your answer help anybody!Cornelia
It's a good suggestion, but "easily" is the wrong word to use here, as the process of analyzing AOSP code is time consuming.Streetcar

© 2022 - 2024 — McMap. All rights reserved.