How to have multiple instance of Service in Android

后端 未结 3 958
误落风尘
误落风尘 2020-12-19 05:27

Can we have multiple instance of a Service in Android ? I want a service which can make phone silent on a specific time and I want to re use that service to make the phone i

3条回答
  •  隐瞒了意图╮
    2020-12-19 05:51

    I do not think the service can be used for a such purpose. Service has to provide some functionality, but only one meaning, not for several different purposes. It's better to create additional service for that to keep code simple and clear.

提交回复
热议问题