Local service or remote service?

前端 未结 3 1159
北荒
北荒 2021-02-06 12:38

I have a background Service which must run permanently. The service just has to interact with my Activity.

  1. How to i check on activity resume if the service is

3条回答
  •  情深已故
    2021-02-06 13:08

    Start the service in startforeground(). It will increase the timespan of the service.

提交回复
热议问题