Posted By

BenClayton on 02/25/11


Tagged


Versions (?)

Android: Run a function after a delay


 / Published in: Objective C
 

Note that variables that you use within the run function must be marked as 'final'

  1. new Handler().postDelayed(new Runnable() {
  2. public void run() {
  3. myVar.doSomething();
  4. }
  5. }, 2000);

Report this snippet  

You need to login to post a comment.