How to restart service in android to call service oncreate again

前端 未结 6 1517
慢半拍i
慢半拍i 2020-12-09 08:10

I have a service in my Android Application which runs always.Now i have a settings from my server through GCM and update these settings to my service. I put my settings in o

6条回答
  •  遥遥无期
    2020-12-09 08:36

    Just calling again startService() will start the service again if it's already running, meaning service will be restarted.

提交回复
热议问题