I need to know my speed Internet which I use in my application: this's my code :
WifiManager wifi = (WifiManager) getSystemService(Context.WIFI_SERVICE);
wifi.setWifiEnabled(true);
int speedMbps = 0;
if (wifi.getConnectionInfo() != null) {
speedMbps = wifi.getConnectionInfo().getLinkSpeed();
}
so speedMbps alwys gives me 64 Mbps even I test my speed internet using a website I found 4,8Mbps so why and where this value 64 comes from ?