相关 logcat 日志:
07-20 16:42:36.590 10500-10500/com.test.demo E/LoadedApk: com.test.demo registered 501 Receivers in 2 Contexts
java.lang.Throwable
at android.app.LoadedApk.checkRecevierRegisteredLeakLocked(LoadedApk.java:1009)
at android.app.LoadedApk.getReceiverDispatcher(LoadedApk.java:1038)
at android.app.ContextImpl.registerReceiverInternal(ContextImpl.java:1476)
at android.app.ContextImpl.registerReceiver(ContextImpl.java:1456)
at android.app.ContextImpl.registerReceiver(ContextImpl.java:1450)
at android.content.ContextWrapper.registerReceiver(ContextWrapper.java:586)
at com.test.demo.TestActivity$2.onClick(TestActivity.java:283)
at android.view.View.performClick(View.java:5646)
at android.view.View$PerformClick.run(View.java:22473)
at android.os.Handler.handleCallback(Handler.java:761)
at android.os.Handler.dispatchMessage(Handler.java:98)
at android.os.Looper.loop(Looper.java:156)
at android.app.ActivityThread.main(ActivityThread.java:6523)
at java.lang.reflect.Method.invoke(Native Method)
at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:942)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:832)