My requirement is simple.
I have a simple app. 2 Buttons. and 1 service. Conditions: Button1 clicked,-> Start the IntentService.Button2 clicked -> Stop the IntentService.
The first part works fine. I can start the IntentService using startService(intent) command. However, I cannot stop the IntentService. i.e., stopService(intent) command isn't working. It is neither throwing an error nor doing anything.
Can anyone please shed some light on this??
I searched and found this question How to stop an IntentService? but it doesn't answer my need.