Check whether android wifip2p connection was successful?
问题 I am connecting two android devices via Wifi Direct. I created a group using Wifip2pManager.createGroup on the first device. Now, on the second device I call the Wifip2pManager.connect method. But the connect method is succesful, even if the first device declines the connection since it only checks for successful initialization . How do I check if the other device accepted the connection ? 回答1: The class needs to implement ConnectionInfoListener. And in the function onConnectionInfoAvailable