我在我的onCreate()下面的代碼:泄露IntentReceiver
registerReceiver(onComplete, new IntentFilter(DownloadManager.ACTION_DOWNLOAD_COMPLETE));
此行似乎是拋出以下錯誤:Activity has leaked IntentReceiver that was originally registered here. Are you missing a call to unregisterReceiver()?
。
我只是不明白這是如何可能的 - 但我完全卸載我的應用程序,然後再次安裝它,這是整個應用程序中唯一的接收器註冊。有誰知道什麼是錯的?
你註銷接收器呢? – JoxTraex