How to monitor active broadcastReceivers of my app?

392 Views Asked by At

Is it possible to somehow see if a particular broadcastReceiver 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?

1

There are 1 best solutions below

0
On BEST ANSWER

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