I have a service with a content observer watching the calendar provider and there are some instances where i need to stop the service so the observer's onchange
does not get called when adding an event and then restart the service when it is added.
In my activity I use stopService(new Intent(context,Service.class));
to stop the service then I start it up again later on trying to avoid the onchange call when the provider gets changed but it does not appear the service gets stopped because the onchange still gets called causing force closes in my database because my query in my service cant find the event yet.
so how can i get around this problem?