Faisal Abid
Faisal Abid

Reputation: 9140

Android Connection Presistence

Does Android keep the connection between the server/socket when it moves from EDGE to WIFI and vice versa?

Upvotes: 2

Views: 612

Answers (2)

Airsource Ltd
Airsource Ltd

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

haseman
haseman

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

Related Questions