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

javascript - Thinglink image not visible until browser resize -

firebird - Error "invalid transaction handle (expecting explicit transaction start)" executing script from Delphi -

mongodb - How to keep track of users making Stripe Payments -