AMD
AMD

Reputation: 1722

unexpected null in start extracting text in InputMethodService

I am developing soft keyboard every thing works fine but when i change orientation following error occurs

"Unexpected null in startExtractingText : mExtractedText = null, input connection = com.android.internal.view.InputConnectionWrapper"

and close the inputview as well

i don't know how to solve this please help.

Upvotes: 2

Views: 1590

Answers (2)

guptaatul91
guptaatul91

Reputation: 61

I have faced the same issue. I have resolved this issue. In my case , I was adding my custom view on overrided method setExtractView(View view). But I was not removing views first.

Let me explain :

@Override
public void setExtractView(View view) {
  // You have to do this if you are not doing so
  view.removeAllViews() ; // This is the line 
  view.addView(yourView) ; // Here you can put your own  Custom view 
  super.setExtractView(view);
} 

This is working for me.I hope this will help you.

Upvotes: 1

AMD
AMD

Reputation: 1722

I found problem when External application force close Input-view it will throw

start extracting text null

Upvotes: 1

Related Questions