Android O issues with WiFi Peer Discovery

前提是你 提交于 2019-12-04 05:21:20
Pavel Zavyalov

I had the same problem. On my nexus 5x now also Android O. And I also always got an empty WifiP2pDeviceList. I think it's assign (?) with similar problem on Android 6 SCAN_RESULTS_AVAILABLE_ACTION return empty list in Android 6.0

It works for me...

Set the targetSdkVersion <= 25 can solve this issue,but I don't know why.

I faced the similar issue. I fixed it by adding

Step 1 : Add Location permission in manifest.

Step 2: Request permission dynamically in your activity.

Step 3: Now scan for WIFI peers. It will appear.

Kudos!!!

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!