Intentservice Not Getting Intents From Manifest Registration
This IntentService (NotificationService in the snippet) isn't getting started and doesn't receive those Intents. By registering a receiver for them in the Application class, I've
Solution 1:
Any suggestions for what might be wrong here?
You appear to be thinking that services are started automatically by broadcast Intents
, which is not the case.
I'd rather not create a broadcast receiver just to start an IntentService.
Well, you are welcome to rewrite the code that is sending com.redactedtoprotecttheinnocent.ACTION_INCOMING_CALL
and com.redactedtoprotecttheinnocent.ACTION_CALL_STATUS_CHANGE
broadcasts, so that they stop sending broadcasts, and instead use startService()
to send commands to your service. If this code is not yours, though, changing it may be difficult.
Or, you can have a short manifest-registered BroadcastReceiver
that turns around and calls startService()
to have the service process the broadcasts.
Post a Comment for "Intentservice Not Getting Intents From Manifest Registration"