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
The best solution is to use onDestroy().
When need to restart the service just call
RESTARTSERVICE = true; stopService(new Intent(this, CLASS_OF_SERVICE.class));
and
public void onDestroy() { if (RESTARTSERVICE) { startService(new Intent(this, CLASS_OF_SERVICE.class)); } }