diff --git a/src/com/upc/pbe/upcnews/MainActivity.java b/src/com/upc/pbe/upcnews/MainActivity.java index 4a68753..855d156 100644 --- a/src/com/upc/pbe/upcnews/MainActivity.java +++ b/src/com/upc/pbe/upcnews/MainActivity.java @@ -41,14 +41,14 @@ public class MainActivity extends Activity implements OnClickListener { new Thread() { public void run() { //Wifi Info - for (int i = 0; i < 10; i++) { + for (int i = 0; i < 5; i++) { wifi = (WifiManager) getSystemService(Context.WIFI_SERVICE); WifiInfo info = wifi.getConnectionInfo(); int speed = info.getLinkSpeed(); String str = "Speed: " + speed; Log.d(TAG, str); try { - this.sleep(5000); + Thread.sleep(1000); } catch (InterruptedException e) { e.printStackTrace(); }