Reputation: 19723
My application has the following components:
2 Activities
A Service
and a
BroadcastReceiver
Whenever the user updates the system time, my broadcast receiver receives the Intent.ACTION_TIME_CHANGED
. Now when this happens I want to reschedule a Handler
in my Service
. How do I bind to a Service within my BroadcastReceiver
?
Upvotes: 1
Views: 3751
Reputation: 2741
Your service can catch the intent directly without any BroadcastReceiver help.
Can be done by adding intent-filter to your service. There are two ways to do that:
Upvotes: 3