我已经在我的应用程序中实现了 GCM,并且按照此处的建议使用GSMRegistrar。不,我在 logcat 中遇到错误
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()?
我可以从中理解并查看代码GSMRegistrar
是我需要打电话GSMRegistrar.onDestroy(this)
但我不明白我应该在哪里打电话?调用onDestroy()
活动mnp
会导致它停止重试GSM Registartion