I have a Service that is binded with BIND_AUTO_CREATE to my Activity and is started with START_STICKY. I do not explicitly call startService().
Since the onDestroy() method is not always called when my Activity get killed and the onStop() method is not viable since I don't want my Service to stop when the user simply presses the Home button, I don't know when to unbind my Service.
Here are my questions :
If I want my Service to run when my Activity is alive and to stop when my Activity get killed, where should I unbind my Service?
When the onDestroy() method is currently called and I call unbindService(), the Service's onUnbind() method isn't triggered. Why?