How can i check my android device support wifi direct?

后端 未结 5 1382
甜味超标
甜味超标 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:36

    Checking if Wifi P2P is supported:

    • In code: If you cannot get the system service, it's not supported

      mManager = (WifiP2pManager) getSystemService(Context.WIFI_P2P_SERVICE);
      
    • Without code: Check whether the option is in the Settings app (Under Wifi)

    As per your second question: yes, devices connected via wifi direct communicate without any existing wifi network.

提交回复
热议问题