2

After reading through this " How to Generate Key Presses Programmatically Android " and the associated answers, I created a class that extends InputMethodService, but is empty otherwise.

I create an instance of that class and then do something like this _imsExtend.getCurrentInputConnection(), but it appears that getCurrentInputConnection() returns a null pointer and causes issues thereafter.

What am I forgetting to do? I am guessing I need to setup some of the parameters of _imsExtend, but what?

Cœur
  • 37,241
  • 25
  • 195
  • 267
corbin
  • 1,446
  • 2
  • 27
  • 40

0 Answers0