如何在android中处理DeadObjectException?

时间:2015-07-07 04:02:25

标签: android

有时我单击我的应用程序中的EditText,软键盘不会显示,并且会发生异常(异常并不总是发生)。 异常日志是:

W/InputMethodManagerService(  461): android.os.DeadObjectException

    W/InputMethodManagerService(  461):     at android.os.BinderProxy.transact(Native Method)

    W/InputMethodManagerService(  461):     at com.android.internal.view.IInputMethodSession$Stub$Proxy.finishSession(IInputMethodSession.java:292)

    W/InputMethodManagerService(  461):     at com.android.server.InputMethodManagerService.finishSessionLocked(InputMethodManagerService.java:1357)

    W/InputMethodManagerService(  461):     at com.android.server.InputMethodManagerService.clearClientSessionLocked(InputMethodManagerService.java:1348)

    W/InputMethodManagerService(  461):     at com.android.server.InputMethodManagerService.clearCurMethodLocked(InputMethodManagerService.java:1374)

    W/InputMethodManagerService(  461):     at com.android.server.InputMethodManagerService.onServiceDisconnected(InputMethodManagerService.java:1393)

    W/InputMethodManagerService(  461):     at android.app.LoadedApk$ServiceDispatcher.doDeath(LoadedApk.java:1120)

    W/InputMethodManagerService(  461):     at android.app.LoadedApk$ServiceDispatcher$RunConnection.run(LoadedApk.java:1134)

    W/InputMethodManagerService(  461):     at android.os.Handler.handleCallback(Handler.java:733)

    W/InputMethodManagerService(  461):     at android.os.Handler.dispatchMessage(Handler.java:95)

    W/InputMethodManagerService(  461):     at android.os.Looper.loop(Looper.java:136)

    W/InputMethodManagerService(  461):     at com.android.server.ServerThread.initAndLoop(SystemServer.java:1111)

    W/InputMethodManagerService(  461):     at com.android.server.SystemServer.main(SystemServer.java:1197)

    W/InputMethodManagerService(  461):     at java.lang.reflect.Method.invokeNative(Native Method)

    W/InputMethodManagerService(  461):     at java.lang.reflect.Method.invoke(Method.java:515)

    W/InputMethodManagerService(  461):     at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:779)

    W/InputMethodManagerService(  461):     at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:595)

    W/InputMethodManagerService(  461):     at dalvik.system.NativeStart.main(Native Method)

0 个答案:

没有答案