Inactive InputConnection warning in entire EditText window

In my application, I get a 3 "inactive InputConnection" warning (logCat below) every time I do something with the cursor in the EditText field.

This is a warning popup, even if I select another EditText (with the cursor - one EditText) or just click the button or whatever I do with the cursor in EditText. This behavior corresponds to all pages (actions).

Even if I click on any menu button (to go to another page) or the back button with the focus on the EditText field, the same set of warnings appears.

In some cases, when I don't have an EditText, I don't have this problem.

This problem occurs when I try to use a real device (Samsung Note II), but it does not replicate when I try the emulator.

Does anyone have an idea how to deal with this?

LogCat:

11-27 22:23:44.820: W/IInputConnectionWrapper(25490): getSelectedText on inactive InputConnection 11-27 22:23:44.850: W/IInputConnectionWrapper(25490): setComposingText on inactive InputConnection 11-27 22:23:44.850: W/IInputConnectionWrapper(25490): getExtractedText on inactive InputConnection 
+9
source share
2 answers

You must add this code to the manifest:

android:windowSoftInputMode="adjustNothing"

0
source

Check if you are getIntent() or new Intent() .

When I use getIntent() :

 Intent intent = getIntent(); intent.setClass(getBaseContext(), Activity.class); startActivity(intent); 

start all work first, but the second time the product was launched, the warning and the application were disabled:

V / Monotype: SetAppTypeFace- try flipping, app = com. {package}

V / Monotype: Typeface getFontPathFlipFont - systemFont = default

I / TextInputLayout: The added EditText is not a TextInputEditText. Instead, switch to using this class.

I / TextInputLayout: The added EditText is not a TextInputEditText. Instead, switch to using this class.

I / Dates: Dates: Identifier Activity_idle: android.os.BinderProxy@2c4c94c8 time: 61939164

I / Timeline: Timeline: Activity_launch_request id: com. {package} time: 61942367

W / IInputConnectionWrapper: showStatusIcon on inactive InputConnection

W / IInputConnectionWrapper: beginBatchEdit with InputConnection inactive

W / IInputConnectionWrapper: endBatchEdit when InputConnection is inactive

D / OpenGLRenderer: endAllStagingAnimators at 0x5589e3a5f0 (RippleDrawable) with handle 0x5589d7c0e0

When I use new Intent() :

 Intent intent = new Intent(getBaseContext(), Activity.class); startActivity(intent); 

the application is working fine.

0
source

Source: https://habr.com/ru/post/958935/


All Articles