开发者

How to monitor active broadcastReceivers of my app?

Is it possible to somehow see if a particular broadc开发者_如何转开发astReceiver is registered and running?

I'm facing a problem with the emulator. My code works fine on an actual device but not on an emulator. I'm adding proximity alerts and I have a class that implements broadcastReceiver. I register the receiver, but nothing happens when I run it on the emulator (I'm passing in valid location coordinates which should get caught by the proximity broadcast receiver).

I'm thinking that the broadcastReceiver object might be getting garbage collected. Otherwise I can't explain it.

Any ideas why this is happening? How can I debug this?


Fixed it...Just needed to tick wipe user data apparently....

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜