How can Java find out that the phone is in the "access point" mode?
I need to find out if the phone distributes Wi-Fi / is connected to it.
Here is the code to check the connection to Wi-Fi:
public boolean isWiFiOn() { final WifiManager wifi = (WifiManager) getSystemService(Context.WIFI_SERVICE); if(wifi != null) switch(wifi.getWifiState()) { case(WifiManager.WIFI_STATE_DISABLED): case(WifiManager.WIFI_STATE_DISABLING): return false; default: return true; } return false; } But this code returns false if the phone is in access point mode.
How can I find out if he is distributing Wi-Fi?