Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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?

like image 276
totzi10 Avatar asked Feb 15 '23 10:02

totzi10


1 Answers

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

InputMethodManager imm = (InputMethodManager)
            getSystemService(Context.INPUT_METHOD_SERVICE);
    imm.showInputMethodPicker();
like image 124
dinesh Avatar answered Feb 24 '23 01:02

dinesh