Uinput virtual device is detected as physical keyboard on android

前端 未结 1 1130
予麋鹿
予麋鹿 2021-01-16 01:10

I\'ve created a simple native library in C that allows the user to create a device using uinput module. The code seems to work, but there\'s a problem: my virtual device is

1条回答
  •  说谎
    说谎 (楼主)
    2021-01-16 02:16

    To solve this issue I made my custom IME: I took the SoftKeyboard from com.example.android.softkeyboard package and then what there's to do is simply override the onEvaluateInputViewShown method this way:

    @Override
    public boolean onEvaluateInputViewShown() {
        return true;
    }
    

    0 讨论(0)
提交回复
热议问题