Hello, In the Text Messaging app, when typing text into the the EditText field that says "Tap to compose", the virtual keyboard shows word predictions (word suggestions) just above the keyboard. See here for an example (bottom image): http://android-developers.blogspot.com/2009/04/creating-input-method.html
I would like to do this for an EditText or AutoCompleteTextView in my app. But I don't know how. I've tried the following, but they do not work: myEditText.setInputType(InputType.TYPE_TEXT_FLAG_AUTO_COMPLETE); myEditText.setInputType(EditorInfo.TYPE_TEXT_FLAG_AUTO_COMPLETE); // the same int value as above The only change this makes on the virtual keyboard is to change the <Enter> button to a "Done" button. On the HTC Sense UI, it doesn't change the virtual keyboard at all. I have tried modifying various things in Settings -> Locale and Text - > Keyboard Settings. But this doesn't make any difference. It seems that word completion is only enabled for specific EditText's (and not all EditTexts). Does anyone know how to enable this? Note: I have used the SoftKeyboard sample app, and it works to show word predictions. But it's a lot of code which seems to recreate a new keyboard. I don't want to do this. I just want to enable word predictions with the existing virtual keyboard. Thanks. -- You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/android-developers?hl=en

