Sleep command for Android
问题 I am writing a small program to periodically poll the RSSI of the WIFI connection. I am using SystemClock.Sleep(2000) in the program. The problem, I would like to display the RSSI every 2 seconds. But, currently, even though it polls every 2 seconds, the result is displayed only at the end of the loop. Here is the code snippet: for(int i=0;i<10;i++) { Date dt=new Date(); WifiInfo info = wifi.getConnectionInfo(); int rssi = info.getRssi(); textStatus.append("\n\nRSSI :" +Integer.toString(rssi)