Android Activity has leaked IntentReceiver

Are you missing a call to unregisterReceiver()?

Basically you forgot to unregister your BroadcastReceiver when the Activity was getting destroyed. So all you need is this ...
1
2
3
4
5
6
@Override
protected void onDestroy() {
    Log.v("YourActivity", "onDestory");
    unregisterReceiver(receiver);
    super.onDestroy();
}

No comments:

Post a Comment

NO JUNK, Please try to keep this clean and related to the topic at hand.
Comments are for users to ask questions, collaborate or improve on existing.