Local service or remote service?

前端 未结 3 1153
北荒
北荒 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:32

    Why do you want to know if the Service is running? If you need something from it, just throw an Intent and if it's not running it will start by the intent.

    In relation with the second question:

    Your service will not "die" when your Activity closes.

提交回复
热议问题