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 41 new Thread() {
42 42 public void run() {
43 43 //Wifi Info
44   - for (int i = 0; i < 10; i++) {
  44 + for (int i = 0; i < 5; i++) {
45 45 wifi = (WifiManager) getSystemService(Context.WIFI_SERVICE);
46 46 WifiInfo info = wifi.getConnectionInfo();
47 47 int speed = info.getLinkSpeed();
48 48 String str = "Speed: " + speed;
49 49 Log.d(TAG, str);
50 50 try {
51   - this.sleep(5000);
  51 + Thread.sleep(1000);
52 52 } catch (InterruptedException e) {
53 53 e.printStackTrace();
54 54 }
... ...