由网友(热血愤青)分享简介:01-16 16:52:42.211: E/ActivityThread(2529): Activity com.Civilcourage.CivilcurageSplash has leaked IntentReceiver com.google.android.gcm.GCMBroadcastReceiver@40...
01-16 16:52:42.211: E/ActivityThread(2529): Activity com.Civilcourage.CivilcurageSplash has leaked IntentReceiver com.google.android.gcm.GCMBroadcastReceiver@405282e0 that was originally registered here.
Are you missing a call to unregisterReceiver()?
什么是上述错误的原因是什么? 怎么能避免?
What is the cause of the above error? How can it be avoided?
推荐答案
您需要注销您的接收器上停止你的活动:
You need to unregister your receivers on stop of your activity:
@Override
protected void onStop()
{
unregisterReceiver(yourReceiver);
super.onStop();
}
相关推荐
最新文章