Reputation: 6931
I want to check WiFi hardware equipped with my device or not.
How I get this information?
I can get WifiManager instance from below code.
WifiManager wifiMgr = (WifiManager) getActivity().getSystemService(Context.WIFI_SERVICE);
Upvotes: 1
Views: 125
Reputation: 2770
if (getPackageManager().hasSystemFeature(PackageManager.FEATURE_WIFI)) {
// WiFi
}
see PackageManager documentation
Upvotes: 1