Take the 2-minute tour ×
Android Enthusiasts Stack Exchange is a question and answer site for enthusiasts and power users of the Android operating system. It's 100% free, no registration required.

I'm using Hacker's and Swiftkey X keyboard on Gingerbread. Suggestion line is shown in most apps above the keyboard. But when opening the keyboard in Market or Droidedit (Syntax highlighting editor), the suggestions aren't shown for any keyboard I use. What determines this behaviour? How can I switch on/force suggesting words?

share|improve this question
add comment

1 Answer 1

up vote 4 down vote accepted

Most likely the app has chosen not to show them for that particular input box. From a technical perspective, this is controlled by flags on the TextView object that represents the text area control (e.g. the TYPE_TEXT_FLAG_NO_SUGGESTIONS option). I don't believe there is any way to override this setting if the app chooses to disable it.

It's probably also important to note that it's a bit of a one-way street. Suggestions are enabled by default on all text areas, but will obey the global setting, so an app can't forcibly enable suggestions in any way. If you have the global setting turned off, they're off everywhere.

The logic that the developer documentation provides for allowing apps to forcibly disable suggestions is that in some cases they simply aren't very useful. The specific relevant quote would be (from the above link):

... This is useful for text views that do not contain words from the language and do not benefit from any dictionary-based completions or corrections ...

I'd wager the Market disables them because app names and such have no obligation to be dictionary words, so suggestion attempts would often prove rather futile. I would also understand the same being true of your second example, which sounds like a source code editor (I assume that's what you mean by "syntax highlighting"). It would be sort of akin to Visual Studio underlining misspelt words in source code - it provides no benefit since most of the text will not be dictionary words.

share|improve this answer
    
So same as with statusbar, the distinct app "decides" whether to show statusbar in a app or keyboard suggestions. Does this make sense? The app settings would be filled with such settings to switch on/off. It's like showing task bar in Windows is determined by program? Whats the point of this android "feature"? Same in ICS? Will wait for more opinions/vote before I accept. –  Hauser Jan 26 '12 at 17:24
    
of course, it is reasonable in parts, but for example overiding statusbar showing in every single app creates more chaos than order. I think the user should make this decision, not android or app devs. The point of the statusbar is to use e.g. the clipboard in any app. A lot of my apps dont show it, that's poor and big design error. –  Hauser Jan 26 '12 at 17:34
    
@Hauser: Added my previous comment to the text of my answer instead, which expands on the reasoning to some extent. –  eldarerathis Jan 26 '12 at 17:34
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.