Created
November 2, 2015 11:14
-
-
Save WrathChaos/b05d517e1e984ad02f82 to your computer and use it in GitHub Desktop.
Calling functions after a delay.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
//Here's a runnable/handler combo | |
Runnable mMyRunnable = new Runnable() | |
{ | |
@Override | |
public void run() | |
{ | |
//Your function or code segment will be here ! | |
} | |
}; | |
Handler myHandler = new Handler(); | |
myHandler.postDelayed(mMyRunnable, 900); //Message will be delivered in 0.9 second. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment