Ivan Onishchenko
- Forum posts: 1
Feb 27, 2013, 4:34:42 AM via Website
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!!!
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!!!
Recommended editorial content
With your consent, external content is loaded here.
By clicking on the button above, you agree that external content may be displayed to you. Personal data may be transmitted to third-party providers in the process. You can find more information about this in our Privacy Policy.