E/ActivityThread( 655): Activity com.android.internal.app.ChooserActivity has
leaked IntentReceiver com.android.internal.app.ResolverActivity$1@412f4f38
that was originally registered here.
Are you missing a call to unregisterReceiver()? E/ActivityThread( 655):
android.app.IntentReceiverLeaked:
Activity com.android.internal.app.ChooserActivity has leaked IntentReceiver
com.android.internal.app.ResolverActivity$1@412f4f38 that was originally
registered here. Are you missing a call to unregisterReceiver()?
- 这个错误是什么意思?
- 由于应用程序继续工作,我应该忽略它吗?
- 我该如何解决?
当我按照此处发布的例程从手机图库中选择图像时,就会发生这种情况。正是当我按下 Activity 布局中定义的浏览图库按钮时。
完整的 LOGCAT:
E/ActivityThread( 655): at android.app.LoadedApk$ReceiverDispatcher.<init>(LoadedApk.java:763)
E/ActivityThread( 655): at android.app.LoadedApk.getReceiverDispatcher(LoadedApk.java:567)
E/ActivityThread( 655): at android.app.ContextImpl.registerReceiverInternal(ContextImpl.java:1043)
E/ActivityThread( 655): at android.app.ContextImpl.registerReceiver(ContextImpl.java:1030)
E/ActivityThread( 655): at android.app.ContextImpl.registerReceiver(ContextImpl.java:1024)
E/ActivityThread( 655): at android.content.ContextWrapper.registerReceiver(ContextWrapper.java:341)
E/ActivityThread( 655): at com.android.internal.content.PackageMonitor.register(PackageMonitor.java:65)
E/ActivityThread( 655): at com.android.internal.app.ResolverActivity.onCreate(ResolverActivity.java:99)
E/ActivityThread( 655): at com.android.internal.app.ChooserActivity.onCreate(ChooserActivity.java:53)
E/ActivityThread( 655): at android.app.Activity.performCreate(Activity.java:4465)
E/ActivityThread( 655): at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1049)
E/ActivityThread( 655): at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:1920)
E/ActivityThread( 655): at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:1981)
E/ActivityThread( 655): at android.app.ActivityThread.access$600(ActivityThread.java:123)
E/ActivityThread( 655): at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1147)
E/ActivityThread( 655): at android.os.Handler.dispatchMessage(Handler.java:99)
E/ActivityThread( 655): at android.os.Looper.loop(Looper.java:137)
E/ActivityThread( 655): at android.app.ActivityThread.main(ActivityThread.java:4424)
E/ActivityThread( 655): at java.lang.reflect.Method.invokeNative(Native Method)
E/ActivityThread( 655): at java.lang.reflect.Method.invoke(Method.java:511)
E/ActivityThread( 655): at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:784)
E/ActivityThread( 655): at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:551)
E/ActivityThread( 655): at dalvik.system.NativeStart.main(Native Method)