Skip to main content

Posts

Showing posts from June, 2012

Enable IME and select it

So you wrote your own IME and gloating over it. But users are bugging you about how to use it. And the active installation rate is dismal. So what do you do. You do what great artists do. Copy the design. I saw somewhere that they are letting you enable your keyboard and set that as active IME. So the code is quite simple, in fact very simple. To display all the keyboards and enable your keyboard, call the following code  Intent i = new Intent(Settings.ACTION_INPUT_METHOD_SETTINGS);     startActivity(i); Here is the screen you see. When you want to make your keyboard as the default IME, here is the code you write InputMethodManager imm = (InputMethodManager) getSystemService(Context.INPUT_METHOD_SERVICE); imm.showInputMethodPicker();