Reputation: 135
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
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