My app opens the input method picker (the menu where you choose a keyboard) with InputMethodManager.showInputMethodPicker()
. My app doesn't actually create the picker (it's created by InputMethodManager) but I know it's a ContextMenu
and its id is R.id.switchInputMethod
.
The picker is part of a multi-step wizard so I need to know when the picker closes so my app can proceed to the next step. Right now I'm checking in a background thread if the default keyboard changed, but that doesn't help if the user selects the same keyboard or presses back.
So I need a way to tell when the picker closes (or some other clever way to know when to proceed).
Thanks in advance...
See Question&Answers more detail:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…