Fabien Demangeat
Fabien Demangeat

Reputation: 934

Get notified when a client connect to a WifiP2p group

Is there any to way get a notification through a BroadcastReceiver when a client connects itself to a WifiP2p group created via createGroup(..) ?

Sounds like the

    - WIFI_P2P_STATE_CHANGED_ACTION
    - WIFI_P2P_PEERS_CHANGED_ACTION
    - WIFI_P2P_CONNECTION_CHANGED_ACTION and 
    - WIFI_P2P_THIS_DEVICE_CHANGED_ACTION

don't handle this.

Thank you. Fab

Upvotes: 0

Views: 360

Answers (1)

user1742861
user1742861

Reputation: 56

From my own tests with createGroup(), I can tell that WIFI_P2P_PEERS_CHANGED_ACTION is actually notified when a client connects or disconnects.

Upvotes: 2

Related Questions