enter image description here Why, after receiving an Intent in the onstartCommnas Service, calls onDestroy?

After all, I got the data from Intent. But for some reason I get an error

Intent (has extras)

  • and where is the error then? - Sviat Volkov
  • @SviatVolkov, I say there is no error. Just after onStartCommnad, onDestroy is called. The same service it should hang in the process. I did not call stopService to close it. And he takes and closes himself - user239760
  • so that the service hung in the background, it should be foreground. normal service worked and died. - Sviat Volkov
  • @SviatVolkov, Maybe all the same backgrond)) - user239760
  • The point is not even in the back / foreground, but in the fact that it simply has nothing to do, but since there is nothing to do, then there is no need to hang in the background. - woesss

1 answer 1

Intent is not correct, therefore, the error was