I have a particular situation: a service started by a broadcast receiver starts an activity. I want to make it possible for this activity to communicate back to the service.
The onServiceConnected event was never being called in my application.
The problem was that I had the service name defined in my Application Manifest as:
Once I changed it to the full class name it worked:
Update: You can also have use a relative class name:
Specify the class name using its full com.example.MyServiceClass instead of just MyServiceClass.