0

문제를 감지 할 수 없습니다.이 문제는 Samsung Device에만 해당됩니다.Samsung : 전원 끄기 InputMethodService가 손상됨 (NullPointerException)

난 내 로그에있어 또 한가지 :

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


11-23 15:44:06.463 21778-21778/? W/System.err: java.lang.NullPointerException: Attempt to invoke virtual method 'void android.inputmethodservice.InputMethodService.forceExtractEditTextClose()' on a null object reference 
11-23 15:44:06.463 21778-21778/? W/System.err:  at android.inputmethodservice.ExtractEditText.onScreenStateChanged(ExtractEditText.java:246) 
11-23 15:44:06.463 21778-21778/? W/System.err:  at android.view.View.dispatchScreenStateChanged(View.java:15375) 
11-23 15:44:06.463 21778-21778/? W/System.err:  at android.view.ViewGroup.dispatchScreenStateChanged(ViewGroup.java:3164) 
11-23 15:44:06.463 21778-21778/? W/System.err:  at android.view.ViewGroup.dispatchScreenStateChanged(ViewGroup.java:3164) 
11-23 15:44:06.463 21778-21778/? W/System.err:  at android.view.ViewGroup.dispatchScreenStateChanged(ViewGroup.java:3164) 
11-23 15:44:06.463 21778-21778/? W/System.err:  at android.view.ViewGroup.dispatchScreenStateChanged(ViewGroup.java:3164) 
11-23 15:44:06.463 21778-21778/? W/System.err:  at android.view.ViewGroup.dispatchScreenStateChanged(ViewGroup.java:3164) 
11-23 15:44:06.463 21778-21778/? W/System.err:  at android.view.ViewGroup.dispatchScreenStateChanged(ViewGroup.java:3164) 
11-23 15:44:06.463 21778-21778/? W/System.err:  at android.view.ViewGroup.dispatchScreenStateChanged(ViewGroup.java:3164) 
11-23 15:44:06.463 21778-21778/? W/System.err:  at android.view.ViewGroup.dispatchScreenStateChanged(ViewGroup.java:3164) 
11-23 15:44:06.463 21778-21778/? W/System.err:  at android.view.ViewRootImpl$1.onDisplayChanged(ViewRootImpl.java:1171) 
11-23 15:44:06.463 21778-21778/? W/System.err:  at android.hardware.display.DisplayManagerGlobal$DisplayListenerDelegate.handleMessage(DisplayManagerGlobal.java:724) 
11-23 15:44:06.463 21778-21778/? W/System.err:  at android.os.Handler.dispatchMessage(Handler.java:102) 
11-23 15:44:06.463 21778-21778/? W/System.err:  at android.os.Looper.loop(Looper.java:158) 
11-23 15:44:06.463 21778-21778/? W/System.err:  at android.app.ActivityThread.main(ActivityThread.java:7225) 
11-23 15:44:06.463 21778-21778/? W/System.err:  at java.lang.reflect.Method.invoke(Native Method) 
11-23 15:44:06.463 21778-21778/? W/System.err:  at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:1230) 
11-23 15:44:06.463 21778-21778/? W/System.err:  at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:1120) 

답변

0

나는 자신이 문제를 해결했다. 필자의 경우, 커스텀 뷰를 오버라이드 된 setExtractView (뷰 뷰)에 추가하고 있었다. 그러나 나는 먼저 견해를 제거하지 않았습니다.

설명해 드리죠 : 이것은 나를 위해 노력하고 있습니다

@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); 
} 

.

"Unexpected null in startExtractingText : mExtractedText = null, input connection = com.android.internal.view.InputConnectionWrapper" 
과 같이 문제가 발생하면 도움이되기를 바랍니다.