Commit dee7759239a522dc599def8f03bbf289c81b2b12

Authored by Imanol-Mikel Barba Sabariego
1 parent 6bd1ad5f

--no commit message

src/com/upc/pbe/upcnews/MainActivity.java
@@ -41,14 +41,14 @@ public class MainActivity extends Activity implements OnClickListener { @@ -41,14 +41,14 @@ public class MainActivity extends Activity implements OnClickListener {
41 new Thread() { 41 new Thread() {
42 public void run() { 42 public void run() {
43 //Wifi Info 43 //Wifi Info
44 - for (int i = 0; i < 10; i++) { 44 + for (int i = 0; i < 5; i++) {
45 wifi = (WifiManager) getSystemService(Context.WIFI_SERVICE); 45 wifi = (WifiManager) getSystemService(Context.WIFI_SERVICE);
46 WifiInfo info = wifi.getConnectionInfo(); 46 WifiInfo info = wifi.getConnectionInfo();
47 int speed = info.getLinkSpeed(); 47 int speed = info.getLinkSpeed();
48 String str = "Speed: " + speed; 48 String str = "Speed: " + speed;
49 Log.d(TAG, str); 49 Log.d(TAG, str);
50 try { 50 try {
51 - this.sleep(5000); 51 + Thread.sleep(1000);
52 } catch (InterruptedException e) { 52 } catch (InterruptedException e) {
53 e.printStackTrace(); 53 e.printStackTrace();
54 } 54 }