Android: Determine active input method from code
问题 How do you determine which input method is currently active - A user can change the input method (soft keyboard) by long pressing on a text edit field - From code, how does one determine which input method the user has chosen 回答1: I realise you probably don't need this anymore, but someone might want the answer to this. You can use this line to get the String ID of the Input Method in use: String id = Settings.Secure.getString( getContentResolver(), Settings.Secure.DEFAULT_INPUT_METHOD ); If