I am creating WiFi AP programmatically in my application. Do i get any broadcast when new devices connect to my AP.
I know we can get the list of the connected devices from the /proc/net/arp but i need a callback when there is a new connection.
Any help is appreciated.
If you don't need to use the AP to connect to the internet but just to communicate in a LAN, you can create a P2P group with WifiP2pManager instance createGroup and listen to WifiP2pManager.WIFI_P2P_CONNECTION_CHANGED_ACTION with a broadcast receiver.
Like this:
For more detail look at: http://developer.android.com/guide/topics/connectivity/wifip2p.html