How open (switch, set) softkeyboard from my service?
My application is not consist any activity. But i try open softkeyboard on trigger in my service, when alient application is onscreen.
I find in InputMethodManager
's method setInputMethod
. Second argument is id of keyboard. I know it. But first argument is IBinder
. What is IBinder argument in my application?
Add detail:
My application consist of Service
and InputMethodService
.
In Service - Analyzing starting application in system. In InputMethodService
- my softkeyboard (IME). If in my Service i determine what is start right application (I dont own this application), I need to switch current softkeyboard
to my InputMethodService's IME. Only switch, but not open keyboard. And when user tap on editabled view in client application, system open my soft keyboard.