当我以编程方式注册我的 BroadcastReceiver 时,我在 LogCat 中收到以下错误。我知道我没有在 Activity 中注销我的 BroadcastReceiver。
但是当我通过 Manifest 注册时,我没有收到此错误。为什么??????
还有 MainActivity 泄露了 IntentReceiver 是什么意思???. 它会在内存中产生任何问题吗?
如果我没有取消注册我的 BroadcastReceiver 会发生什么糟糕的事情???
10-06 18:09:38.057: E/ActivityThread(15435): Activity com.collabera.labs.sai.MainActivity
has leaked IntentReceiver com.collabera.labs.sai.MyBroadcastReceiver@41c8bc68 that was
originally registered here. Are you missing a call to unregisterReceiver()?