wifip2p

How to auto-accept Wi-Fi Direct connection requests in Android

▼魔方 西西 提交于 2019-11-28 05:33:39
I have 2 Android devices using WiFi Direct. On one device I can get information about the other device using the WifiP2pManager class, and request a connection to the other device. However when I request a connection, the other device pops up a little window and asks the user if they want to accept the connection request. Is it possible to auto-accept these connection requests? I.E to be able to connect to the other device without user confirmation? Based on the comments, do you really need to connect to the devices if you just want to track and log the vehicles around you ? I don't know the

How to be notified when a peer is no longer available in the Wi-Fi Direct range?

。_饼干妹妹 提交于 2019-11-27 20:12:51
I am developing an Android application based on the use of Wifi Direct API. I have registered in my Activity a BroadcastReceiver in order to be notified about the following Wifi Direct events: WifiP2pManager.WIFI_P2P_STATE_CHANGED_ACTION WifiP2pManager.WIFI_P2P_PEERS_CHANGED_ACTION WifiP2pManager.WIFI_P2P_CONNECTION_CHANGED_ACTION WifiP2pManager.WIFI_P2P_THIS_DEVICE_CHANGED_ACTION I believed that any change in the list of peers (the inclusion or exclusion of a peer in the Wifi Direct range) could trigger the BroadcastReceiver . In my app, when a new peer is found, its name is correctly

Can I change the group owner in a persistent group in Wi-Fi Direct?

删除回忆录丶 提交于 2019-11-27 04:18:24
When creating a group via Wi-Fi Direct, I know that I can make a persistent group. My question is: can I create a persistent group, but each time change the group owner (i.e; each turn the group owner will be one of the devices in the group). Also, when creating a persistent group, it is required to accept the connection only the first time, right? Bill G You can now create a new persistent group via WifiP2pManager.createGroup(..) . It will create a new group and make the calling device (A) group owner and can do what you described. The only problem is once you create a group and connect to

How to be notified when a peer is no longer available in the Wi-Fi Direct range?

杀马特。学长 韩版系。学妹 提交于 2019-11-26 20:17:23
问题 I am developing an Android application based on the use of Wifi Direct API. I have registered in my Activity a BroadcastReceiver in order to be notified about the following Wifi Direct events: WifiP2pManager.WIFI_P2P_STATE_CHANGED_ACTION WifiP2pManager.WIFI_P2P_PEERS_CHANGED_ACTION WifiP2pManager.WIFI_P2P_CONNECTION_CHANGED_ACTION WifiP2pManager.WIFI_P2P_THIS_DEVICE_CHANGED_ACTION I believed that any change in the list of peers (the inclusion or exclusion of a peer in the Wifi Direct range)

Can I change the group owner in a persistent group in Wi-Fi Direct?

穿精又带淫゛_ 提交于 2019-11-26 11:08:04
问题 When creating a group via Wi-Fi Direct, I know that I can make a persistent group. My question is: can I create a persistent group, but each time change the group owner (i.e; each turn the group owner will be one of the devices in the group). Also, when creating a persistent group, it is required to accept the connection only the first time, right? 回答1: You can now create a new persistent group via WifiP2pManager.createGroup(..) . It will create a new group and make the calling device (A)