Can an IntentService run indefinitely?

后端 未结 4 1209
小蘑菇
小蘑菇 2020-12-14 03:06

Based on my understanding, an IntentService will get stopped when its current request is done.

Consider the below scenario, i will be triggering a request to the Int

4条回答
  •  再見小時候
    2020-12-14 03:44

    You need to create a Service and bind to your service for preventing it to stop. See the docs.

    The service that will be started with bindService() will run until no Activity is still bound to it.

提交回复
热议问题