How to emulate keyboard event in application

  • Replies:0
Ivan Onishchenko
  • Forum posts: 1

Feb 27, 2013, 4:34:42 AM via Website

I need to use button in my activity instead android keyboard. I finde example:

InputConnection ic = getCurrentInputConnection();

ic.deleteSurroundingText(4, 0);

ic.commitText("Hello", 1);

ic.commitText("!", 1);
But I can't understand how use it in my application. Where should I create class that extends InputMethodService, and what this class must have. Please help!!!

Reply