I'm trying to get a IBinder from a Service so I can communicate with the service when receiving a notification from the system. From my onReceive() method I'm calling peekService() but I'm getting a null reference.
I've read some answers here https://groups.google.com/forum/#!topic/android-developers/yiq_XIzFoS4 from Dianne and Mark where they recommend using startService but my service has an interface and I think peekService should work, but it doesn't.
Do I need permissions to peek a service from a BroadcastReceiver? Do I need something else? I'm sure the service is running but I can't get a binder from it.