How to add custom InputMethodService to Activity?
问题 I decided to create a custom keyboard for my application. I know that this is not the best idea, since it's hurting the user friendliness, that's why I will just make it optional in Preferences. After having it all done in a class public class CustomKeyboard extends InputMethodService implements KeyboardView.OnKeyboardActionListener . I struggle to add it as a softInputMethod . I tried with the InputMethodManager but I get incompatible types when casting it. I found that I can get it w/o the