How to check wifi connectivity lost in android? -
i have 2 devices in same wifi network , connected. now, want hear whenever device gets disconnected or reconnects. dont want hear wifi connectivity device connectivity between 2 devices in same wifi network. how can ?
its possible using android's peer peer connection.
this above link.
the wifip2pmanager.actionlistener implemented in snippet notifies when initiation succeeds or fails. hear changes in connection state, implement wifip2pmanager.connectioninfolistener interface. onconnectioninfoavailable() callback notify when state of connection changes. in cases multiple devices going connected single device (like game 3 or more players, or chat app), 1 device designated "group owner".
android android-intent android-wifi android-broadcast connectivity
No comments:
Post a Comment