My application has one activity which starts two services but does not bind them. If I select return button to exit application (I cannot see it in task manager), both of th
As it was already mentioned, it's expected behavior. Killing an app, which started the Service should kill running Service as well. If you want to keep your Service running when app is killed, you should start the Service in a separate process, what can be achieved by the following declaration in the Manifest:
...
Reference: https://stackoverflow.com/a/15474347/1150795
Please note that usually app is not killed until a user explicitly kills it from the task/app manager or system kills it due to limited resources, low battery or similar reason. I'm not sure if it's typical use case to handle such things and if you really need to care about that.