Leaked IntentReceiver in Google Cloud Messaging

前端 未结 3 856
滥情空心
滥情空心 2021-01-01 04:52

I have implemented GCM in my app and I am using GSMRegistrar as suggested here. No I am getting an error in logcat

7-02 23:35:15.830: E/ActivityThread(10442)         


        
3条回答
  •  说谎
    说谎 (楼主)
    2021-01-01 05:38

    You may use the application context, instead of the activity context. That way the backoff mechanism is not restricted by the activity life cycle.

提交回复
热议问题