androidandroid-input-methodandroid-anr-dialog

Android log message "InputMethodManager: The current service view is not the focus view"


While running my android app I see the following warning-level message in the logs right before the app generates an ANR popup warning:

"InputMethodManager: The current service view is not the focus view"

I get the message when clicking on an edittext field in the UI. What causes that warning message?


Solution

  • Usually ANR happens when you do some long running job in UI thread(request server/database, wait some event with sleep, etc).

    About your warning, maybe you call request focus on another view, when some events happened. Try to comment some logic of you service and check behaviour.