java - Re-open Socket Connection when user switch network Android -


i creating socketserver on server machine , letting android client connect , receive message server.

problem: when user switch there network (3g<->2g<->wifi) same socket created on client side can't used anymore.

how detect situation , re-open socket connection again? method should called on socket object detect this?


Comments

Popular posts from this blog

php - Auto increment employee ID -

php - isset function not working properly -

python - Evaluating the next line in a For Loop while in the current iteration -