To write the input method ID into the setting item in system settings, you can use the following codes: Settings.Secure.putString(mContext.getContentResolver(), Settings.Secure.DEFAULT_INPUT_METHOD, "ID of input method"); This will enable InputManagerService to listen for changes to this setting item.
Yes, I use the Google input method, but if I think it is convenient to use the one that can be input by hand, because sometimes you know the word but do not know the correct pronunciation, I recommend a mazec2 input method for mobile phones.