Leaked IntentReceiver in Google Cloud Messaging <p>I have implemented GCM in my app and I am using <a href="http://developer.android.com/guide/google/gcm/client-javadoc/index.html" rel="nofollow">GSMRegistrar</a> as suggested <a href="http://pages.citebite.com/e2n7j5s5mxct" rel="nofollow">here</a>. No I am getting an error in logcat</p> <pre><code>7-02 23:35:15.830: E/ActivityThread(10442): Activity com.abc.xyz.mnp has leaked IntentReceiver com.google.android.gcm.GCMBroadcastReceiver@44f8fb68 that was originally registered here. Are you missing a call to unregisterReceiver()? </code></pre> <p>What I can understand from this and looking at the code for <code>GSMRegistrar</code> is I need to to call <code>GSMRegistrar.onDestroy(this)</code> but I could not understand where should I call this? Calling in <code>onDestroy()</code> of activity <code>mnp</code> causes it to stop retrying for <code>GSM Registartion</code></p>