Reputation: 9140
Does Android keep the connection between the server/socket when it moves from EDGE to WIFI and vice versa?
Upvotes: 2
Views: 612
Reputation: 32642
It does not keep the connection open, but it does not explicitly close it either - if you are reading on the socket when WiFi starts up, you will not get EOF back on your read! You will need to detect the connectivity change using a BroadcastReceiver, and close down the socket yourself.
Upvotes: 0
Reputation: 11313
Switching from Edge to WiFi requires the device to re-negotiate it's IP Address. So yes, it will cut whatever connections are active at time of switch-over.
Upvotes: 2