I have implemented a service which reacts on incoming calls and sms. After a while running, the service seems to be running (explained later why i know this) but it don´t react on incoming calls or sms? If i want then to stop the service, i get an error message (only that the application must be stopped).
I have 2 Buttons, one for start and one for stopping the service in an activity. This activity then starts the service. In the service in the method onStart() i start the listeners:
In the activity i look if the service is running and disable or enable
the start and stop button:
When the service does not inform about incoming sms/calls and i start the activity, then the stop button is activated therefore i can say that the service is still running!? So may it is false to start the
listeners where i do? But what is the right way to implement a service which listens to incoming calls/sms??
Or what could be the problem that the service seems to be running, but it don´t react?