Reputation: 539
I have searched a lot and always find that alarm manager always start with the help of broadcast reciever not directly with services. I want to know why is it so, kindly tell me
Upvotes: 0
Views: 72
Reputation: 15477
Depending on your Pending Intent alarm Manager can start a service, broadcast receiver or an Activity.
getActivity(Context, int, Intent, int),
getBroadcast(Context, int, Intent, int),
getService(Context, int, Intent, int);
You can use any of the method of pending Intent and your alarm will prompt either of activity or receiver or service.
Upvotes: 1