Service vs IntentService in the Android platform

后端 未结 11 612
挽巷
挽巷 2020-11-22 03:38

I am seeking an example of something that can be done with an IntentService that cannot be done with a Service (and vice-versa)?

I also bel

11条回答
  •  广开言路
    2020-11-22 04:01

    If someone can show me an example of something that you can be done with an IntentService and can not be done with a service and the other way around.

    IntentService can not be used for Long Time Listening, Like for XMPP Listeners, its a single time operator, do the job and wave goodbye.

    Also it has just one threadworker, but with a trick, you can use it as unlimited.

提交回复
热议问题