From dee7759239a522dc599def8f03bbf289c81b2b12 Mon Sep 17 00:00:00 2001 From: Equip de Desenvolupadors de PBE Date: Thu, 29 Nov 2012 21:24:12 +0000 Subject: [PATCH] --- src/com/upc/pbe/upcnews/MainActivity.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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(); } -- libgit2 0.22.2