/MediaFocusControl: Failure to signal gain of audio focus due to:

        android.os.DeadObjectException
                                                        at android.os.BinderProxy.transactNative(Native Method)
                                                        at android.os.BinderProxy.transact(Binder.java:620)
                                                        at android.media.IAudioFocusDispatcher$Stub$Proxy.dispatchAudioFocusChange(IAudioFocusDispatcher.java:85)
                                                        at com.android.server.audio.FocusRequester.handleFocusGain(FocusRequester.java:283)
                                                        at com.android.server.audio.MediaFocusControl.notifyTopOfAudioFocusStack(MediaFocusControl.java:101)
                                                        at com.android.server.audio.MediaFocusControl.removeFocusStackEntryForClient(MediaFocusControl.java:202)
                                                        at com.android.server.audio.MediaFocusControl.-wrap0(MediaFocusControl.java)
                                                        at com.android.server.audio.MediaFocusControl$AudioFocusDeathHandler.binderDied(MediaFocusControl.java:271)
                                                        at android.os.BinderProxy.sendDeathNotice(Binder.java:699)
03-30 14:42:57.443 1731-1762/? E/ActivityManager: Failure starting process cn.qssq666.musicdemo
                                                  java.lang.SecurityException: Package cn.qssq666.musicdemo is currently frozen!
                                                      at com.android.server.pm.PackageManagerService.checkPackageStartable(PackageManagerService.java:3371)
                                                      at com.android.server.am.ActivityManagerService.startProcessLocked(ActivityManagerService.java:3862)
                                                      at com.android.server.am.ActivityManagerService.startProcessLocked(ActivityManagerService.java:3820)
                                                      at com.android.server.am.ActivityManagerService.startProcessLocked(ActivityManagerService.java:3683)
                                                      at com.android.server.am.ActivityStackSupervisor.startSpecificActivityLocked(ActivityStackSupervisor.java:1480)
                                                      at com.android.server.am.ActivityStack.resumeTopActivityInnerLocked(ActivityStack.java:2670)
                                                      at com.android.server.am.ActivityStack.resumeTopActivityUncheckedLocked(ActivityStack.java:2174)
                                                      at com.android.server.am.ActivityStackSupervisor.resumeFocusedStackTopActivityLocked(ActivityStackSupervisor.java:1935)
                                                      at com.android.server.am.ActivityStackSupervisor.resumeFocusedStackTopActivityLocked(ActivityStackSupervisor.java:1907)
                                                      at com.android.server.am.ActivityManagerService.handleAppDiedLocked(ActivityManagerService.java:5357)
                                                      at com.android.server.am.ActivityManagerService.removeProcessLocked(ActivityManagerService.java:6679)
                                                      at com.android.server.am.ActivityManagerService.killPackageProcessesLocked(ActivityManagerService.java:6343)
                                                      at com.android.server.am.ActivityManagerService.forceStopPackageLocked(ActivityManagerService.java:6475)
                                                      at com.android.server.am.ActivityManagerService$MainHandler.handleMessage(ActivityManagerService.java:1952)
                                                      at android.os.Handler.dispatchMessage(Handler.java:102)
                                                      at android.os.Looper.loop(Looper.java:163)
                                                      at android.os.HandlerThread.run(HandlerThread.java:61)
                                                      at com.android.server.ServiceThread.run(ServiceThread.java:46)

在service destory之后不应该继续拿焦点

    原文作者:情随事迁666
    原文地址: https://www.jianshu.com/p/345d1ab7c24f
    本文转自网络文章,转载此文章仅为分享知识,如有侵权,请联系博主进行删除。
点赞