Can someone please show me an example of something that can be done with an IntentService
that cannot be done with a Service
(and vice-versa)?
(有人可以给我展示一个示例,该示例可以使用IntentService
进行但不能通过Service
(反之亦然)吗?)
I also believe that an IntentService
runs in a different thread and a Service
does not.
(我也相信IntentService
在不同的线程中运行,而Service
在不同的线程中运行。)
So, as far as I can see, starting a service within its own thread is like starting an IntentService
. (因此,据我所知,在自己的线程中启动服务就像启动IntentService
。)
Is it not? (不是吗)
I would appreciate if someone can help me with both of my questions.
(如果有人可以帮助我解决我的两个问题,我将不胜感激。)
ask by roiberg translate from so 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…