Reputation: 14648
I have an application which will have Sticky Service. This service does GPS location queries all the time. However, I want to have tasks done when I alarm is expired/Bluetooth is connected. These are short lived tasks and I wanted to have services for them . My question is:
Should I use one service for everything and based on the values I get in the OnStartCommand, I would do the required task.
Or should I create separate service class for each one?
Thanks
Upvotes: 1
Views: 336
Reputation: 93559
Separate service for each unrelated task. It will leave your code less confusing.
Upvotes: 1