I know that I can kill a process when I press the red square button that is in the logcat (Having the corresponding device and process selected).
This image shows the way I use to kill an android process
However, when I do that the service is not restarted how I expect. It calls onCreate and onDestroy and it doesn't call onStartCommand despite the fact that the onStartCommand returns START_STICKY.
I show you my code and please if you have an idea of what the problem might be tell me