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

Popular posts from this blog

node.js - Mongoose: Cast to ObjectId failed for value on newly created object after setting the value -

gradle error "Cannot convert the provided notation to a File or URI" -

ios - Possible to get UIButton sizeThatFits to work? -