Hi, all
Such like messager app, client/server framework, using tcp long connection
using heart beating packet.
Cause TCP connection, so when local network is diable or changed,
connection would be disconnected. But to the client, it may not be known
right now till
the next interaction with the
Something like this wouldn't be hard to implement in your application.
Android offers several classes that will help you in probing for the
state of the network connection, wifi connection, etc.
If what you're doing is just regular socket TCP communication simply
wrap your communication in an
Thanks, Miguel Morales.
When network disconnected, the code will check right now. Yes, now start
the timer to connect periodically till it
connect successfully. It works.
After googling, Android has one manager, ConnectivityManager, can detect the
network information. So can check the available
3 matches
Mail list logo