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

前端 未结 4 724
醉话见心
醉话见心 2020-12-08 05:57

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

4条回答
  •  难免孤独
    2020-12-08 06:19

    From my current understanding of the API, You cannot really accept connections automatically without user's intervention. You can initiate a connection, that doesn't require user intervention. If both of your devices are mobile devices, you will have to accept connection request on one end.

    I have put this as a feature request in android project hosting. You can monitor their response here: https://code.google.com/p/android/issues/detail?id=30880

提交回复
热议问题