extending soft-keyboard with language switching support?

by Henrik » Fri, 23 Apr 2010 08:03:47 GMT

Sponsored Links
 I just got my HTC Desire with Android 2.1, and the first problem I'm
running into a lot is when using the visual keyboard.  Being
multilingual and having friends who only speak one particular
language, there's no single 'correct' input language setting for the
word prediction feature, so I started looking into how much work it
might be to extend the keyboard with two rather basic, though
essential, features:

1)  Showing the current language selection, so that I don't have to
type stuff, getting it mis-corrected, then discover the language
setting must be wrong, go into the settings, select to change
language, select language, etc... until I get back, erase the old text
and start over. That gets old real quick..

2)  Being able to simple change whatever language is used for the word
prediction by just having a button on the keyboard doing that
directly, i.e. a button that just cycles through the 'relevant'
languages with the key label showing which is currently active.

Improving it even further, one might imagine:

3)  Having a per contact setting, noting the word-prediction language
that should be used when communicating with that user.

But searching through the docs, I'm slowly coming to the realization
that the input text language setting may not even be available to be
changed outside the system settings dialog, making this impossible to
implement - is that correct?

Henrik Gram


Other Threads

1. Creating ContextMenu based on information from Cursor

You could use setTag() on the row View, if that is not being used for
something else.

However, you probably don't need to use that -- see below.

Cast the menuInfo to an AdapterView.AdapterContextMenuInfo. You then
have access to the position of the row within your result set, and the
ID of the row (if you are using CursorAdapter or otherwise have row IDs).

Those will only be valid if a row is selected:


Mark Murphy (a Commons Guy)
http://commonsware.com | http://github.com/commonsguy
http://commonsware.com/blog | http://twitter.com/commonsguy

_The Busy Coder's Guide to *Advanced* Android Development_
Version 1.6 Available!


2. how to show a dialog alert dialog when receive a broadcast



How to show a alert dialog(whithout any Activity) when receive a


3. Int to string

4. Android on Ubuntu 10.4

5. FYI : ready Linux Kernel LK2.06.beta3 (beta2 + increased level of speaker sound)

6. pengen ada live wallpaper, gimana caranya ya

7. How to get Response Url values.