My Application uses a service that is started by a BOOT_COMPLETE BroadcastReceiver, in run i\'m getting an error
my code:
public class projet extends Br
BroadcastReceiver
s are not allowed to be bound to a Service
as the other answers here have indicated.
A simple solution I used is to forward the Intent
received by the BroadcastReceiver
to the service you originally wanted to bind to, then implement some code in that service's onStartCommand()
method to handle it.