I created background service on android tab using startService() method inside the Activity.
Then I create a Thread on onStart() method. I read from the android developer site that service are independent of the activity, but when I destroy the Activity android system kills the service too. I want the service to continue until I do not stop it myself.
I am aware that it can be done using AlarmManger but it consumes battery. There is no need of push notification, but the service needs to run in the background. Any suggestions on how to solve this?