How can i check my android device support wifi direct?

后端 未结 5 1387
甜味超标
甜味超标 2021-02-03 16:19

I am working with android wifi direct demo application. After installation in my device I noticed that it is not working as expected.

I am confused, does my device supp

5条回答
  •  滥情空心
    2021-02-03 16:25

    Above API 21 you can directly use isP2pSupported () from WifiManager class. For lower Api's you can use PackageManager class,

    if(getPackageManager().hasSystemFeature("android.hardware.wifi.direct"))
    
    //Wifi direct available
    

提交回复
热议问题