Code example for InputMethodManager

Methods: showInputMethodPicker

0
            return QtNativeInputConnection.paste(); 
 
        case ID_SWITCH_INPUT_METHOD:
            InputMethodManager imm = (InputMethodManager)m_view.getContext().getSystemService(Context.INPUT_METHOD_SERVICE);
            if (imm != null) {
                imm.showInputMethodPicker();
            } 
            return true; 
 
        case ID_ADD_TO_DICTIONARY:
// TODO 
//            String word = m_editable.subSequence(0, m_editable.length()).toString(); 
//            if (word != null) { 
//                Intent i = new Intent("com.android.settings.USER_DICTIONARY_INSERT"); 
//                i.putExtra("word", word); 
//                i.setFlags(i.getFlags() | Intent.FLAG_ACTIVITY_NEW_TASK); 
//                m_view.getContext().startActivity(i); 
//            } 
            return true; 
        } 
        return super.performContextMenuAction(id);