I read all about the activity life cycle and its methods.
I still could not find the answer: When I close my application, from the "open applications" menu (in galaxy4 it takes a long press on the "home" button, in nexus5 it is the correct button ...) which method is called? if there?
In other words, my activity launches the service. I want to shut down the service if the application (action) closes. (onDestory is not reliable at all, as said many times here before)
Thanks in advance!
source share