
ytd-android - issue #6
Activity com.google.ytd.SettingActivity has leaked IntentReceiver
What steps will reproduce the problem? 1. Enable logging 2. Change the account under settings. 3. Look at the log
08-16 17:57:30.070: ERROR/ActivityThread(21270): Activity com.google.ytd.SettingActivity has leaked IntentReceiver android.accounts.AccountManager$12@4493cc98 that was originally registered here. Are you missing a call to unregisterReceiver()? android.app.IntentReceiverLeaked: Activity com.google.ytd.SettingActivity has leaked IntentReceiver android.accounts.AccountManager$12@4493cc98 that was originally registered here. Are you missing a call to unregisterReceiver()? at android.app.ActivityThread$PackageInfo$ReceiverDispatcher.<init>(ActivityThread.java:939) at android.app.ActivityThread$PackageInfo.getReceiverDispatcher(ActivityThread.java:734) at android.app.ContextImpl.registerReceiverInternal(ContextImpl.java:791) at android.app.ContextImpl.registerReceiver(ContextImpl.java:778) at android.app.ContextImpl.registerReceiver(ContextImpl.java:772) at android.accounts.AccountManager.addOnAccountsUpdatedListener(AccountManager.java:1708) at com.google.ytd.SettingActivity.onCreate(SettingActivity.java:67) at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1047) at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2627) at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2679) at android.app.ActivityThread.access$2300(ActivityThread.java:125) at android.app.ActivityThread$H.handleMessage(ActivityThread.java:2033) at android.os.Handler.dispatchMessage(Handler.java:99) at android.os.Looper.loop(Looper.java:123) at android.app.ActivityThread.main(ActivityThread.java:4627) at java.lang.reflect.Method.invokeNative(Native Method) at java.lang.reflect.Method.invoke(Method.java:521) at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:868) at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:626) at dalvik.system.NativeStart.main(Native Method)
What is the expected output? What do you see instead?
Please use labels and text to provide additional information.
Status: Accepted
Labels:
Type-Defect
Priority-Medium