What is the difference between a Headless Fragment and a Service in Android?

前端 未结 3 1936
爱一瞬间的悲伤
爱一瞬间的悲伤 2020-12-28 15:08

Service

A Service is an application component representing either an application\'s desire to perform a longer-running operation while not interacting with the use

3条回答
  •  情歌与酒
    2020-12-28 15:45

    Headless fragment- fragment with no ui, basically used for storing large size object


    Service - its long running task start by android, we can set priority to service even application get finished service will not stop unless its work get completed.

提交回复
热议问题