How can I find wifi speed in Android and how can I display wifi speed in TextView?
<p>To find wifi speed I used this code:</p>

<pre><code>WifiManager wifiManager = (WifiManager)this.getSystemService(Context.WIFI_SERVICE);
WifiInfo wifiInfo = wifiManager.getConnectionInfo();
if (wifiInfo != null) {
    int linkSpeed = wifiInfo.getLinkSpeed(); //measured using WifiInfo.LINK_SPEED_UNITS
    //txtSpeed.setText(linkSpeed);
}
</code></pre>

<p>I want to display the speed in my TextView. How can I do this?</p>
