How not to disable internet connection in service while screen is locked or application went to background? I have such problem. I need service in my application to send request to the server every 5 minutes. But after locking screen internet connection stops. I heard about Power Manager but i dont know hot to use it.
If your service is solely for running every 5 minutes you should use the AlarmManager instead.
Anyway, the service should not lose internet connection when running in the background unless you bound it to your activities lifetime.