0

I am having these warning every time I try to enter text on my editText.

W/IInputConnectionWrapper: getTextAfterCursor on inactive InputConnection W/IInputConnectionWrapper: beginBatchEdit on inactive InputConnection beginBatchEdit on inactive InputConnection W/IInputConnectionWrapper: commitText on inactive InputConnection endBatchEdit on inactive InputConnection W/IInputConnectionWrapper: endBatchEdit on inactive InputConnection**

This always occurs when I try to close my App, and open it again. I need to click on my imagebutton first before I can enter again on my editText.

Tried Researching but cant find solution for this.

Bùi Đức Khánh
  • 3,975
  • 6
  • 27
  • 43
Kaneki
  • 1
  • 6

1 Answers1

0

this is not 100% sure answer. I can't comment it because then it will not clear.

According to this article they suggest you to Hide Your Input Keyboard and run the application.

following code will give an idea, how you should do it.

InputMethodManager imm = (InputMethodManager)getSystemService(Context.INPUT_METHOD_SERVICE);
imm.hideSoftInputFromWindow(editText.getWindowToken(), 0);

as a reference you can use this - : getExtractedText on inactive InputConnection warning on android

try this. If this not worked please comment down below. We will try to find a solution. Thanks.

Pasindu Weerakoon
  • 588
  • 1
  • 11
  • 39
  • Hi, I believe this didn't solved my problem. I already tried implementing this code, and also tried to set focus and remove focus on my imagebutton, but still not working. – Kaneki Aug 14 '18 at 03:52