by vinay_ys · 7y ago · 0 comments
You are wrong. Cell networks don't prevent you from keeping a socket open for however long you want. For how to keep your sockets alive, see https://developer.android.com/reference/android/net/SocketKe...
It saves some CPU power by letting your process sleep, but still requires waking the cell radio up periodically.
The implementation can be found here: https://github.com/aosp-mirror/platform_frameworks_base/blob...