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
Above API 21 you can directly use isP2pSupported () from WifiManager class. For lower Api's you can use PackageManager class,
isP2pSupported ()
if(getPackageManager().hasSystemFeature("android.hardware.wifi.direct")) //Wifi direct available