android - How to detect exact time of Network/Internet unavailability..? -
just want detect exact & sharp time of internet/network disconnected or connection no longer available.. suppose app connected server after time lost connection server(say @ 02:30:15 pm) @ same time wana detect time(02:30:15 pm) or alert particular movement lost connectivity..
even if have wi-fi or data connectivity available lost connection..?
see this link,it give example of brodacast receiver connect/disconnct event of wifi connection.
implement same broadcastreceiver in project , listen connect , disconnect event, , @ same time system time system.currenttimemillis()
method. have connect , disconnect time.
hope helpfull you.
Comments
Post a Comment