如何在android中处理DeadObjectException?

如何在android中处理DeadObjectException?,android,Android,有时我在应用程序中单击编辑文本,软键盘不会显示,并且会发生异常(异常并不总是发生)。 异常日志为: W/InputMethodManagerService( 461): android.os.DeadObjectException W/InputMethodManagerService( 461): at android.os.BinderProxy.transact(Native Method) W/InputMethodManagerService( 461

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

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)

在转到下一屏幕之前,您没有关闭某些资源