Android Question the state of the soft keyboard input

ldhyob

Member
Licensed User
Longtime User
How in the Service module get the current state of mobile soft keyboard input method,, show or hide?
The following Java code, always return true value, cannot achieve the desired results. Please help me, have what good way? thank you very much!
B4X:
        InputMethodManager imm = (InputMethodManager)getSystemService(Context.INPUT_METHOD_SERVICE);
        boolean isOpen=imm.isActive();
 

ldhyob

Member
Licensed User
Longtime User
So, I need to Service running the background, the activity of other apps for the system input method of state capture, can achieve?
 
Upvote 0

DonManfred

Expert
Licensed User
Longtime User
Upvote 0
Top