Difference between START_STICKY and START_REDELIVER_INTENT?

前端 未结 3 1961
盖世英雄少女心
盖世英雄少女心 2020-12-09 17:30

I am creating a service for my android app, providing data to the service via Intents. The problem is that when the service is destroyed by the system than the intent data p

3条回答
  •  时光取名叫无心
    2020-12-09 17:37

    If you are overriding onstartCommand() method, its your responsibility to stop it when not needed by calling stopSelf() or stopService() command.

提交回复
热议问题