Don't like ads? PRO users don't see any ads ;-)
Guest

Untitled

By: a guest on May 9th, 2012  |  syntax: None  |  size: 0.62 KB  |  hits: 18  |  expires: Never
download  |  raw  |  embed  |  report abuse  |  print
Text below is selected. Please press Ctrl+C to copy to your clipboard. (⌘+C on Mac)
  1. What is the equivalent of setTimeOut() javascript to Android? [closed]
  2. setTimeOut(call function(),milliseconds);
  3.        
  4. private void refreshTimer() {
  5.         autoUpdate = new Timer();
  6.         autoUpdate.schedule(new TimerTask() {
  7.             @Override
  8.             public void run() {
  9.                 runOnUiThread(new Runnable() {
  10.                     public void run() {
  11.                         adapter = Score.getScoreListAdapter(getApplicationContext());
  12.                         adapter.forceReload();
  13.                         setListAdapter(adapter);
  14.                     }
  15.                 });
  16.             }
  17.         }, 0, 60000);