If I close an Android service by calling stopSelf() the onDestroy() function of the service gets not called.
The attached example is a slightly modified minimal service example from KDAB.
Watch the application output over adb for example by calling adb.exe logcat | findstr /I kdab
If you type "quit" in the message box, the service will be closed and the destructor function onDestroy() gets called.
The service gets closed but the onDestroy() function is not executed.