totzi10
totzi10

Reputation: 135

How to open select input mode on keyboard's event

I have a keyboard that works and I would to implement a method into "onLongPress(..)" to open a default android dialog to change input mode.

Maybe I have to launch an activity?

Upvotes: 4

Views: 1078

Answers (1)

dinesh
dinesh

Reputation: 531

Android Framework already provides this functionality. you can show inputmethodPicker dialog like this

InputMethodManager imm = (InputMethodManager)
            getSystemService(Context.INPUT_METHOD_SERVICE);
    imm.showInputMethodPicker();

Upvotes: 7

Related Questions