Skip to content

Instantly share code, notes, and snippets.

@szepi1991
Last active December 10, 2015 15:38
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
Star You must be signed in to star a gist
Embed
What would you like to do?
Illustration of the reversed order of updates on the UpdateThread in AndEngine.
mEngine.runOnUpdateThread(new Runnable() {
@Override
public void run() { Debug.d("Message 1") }
});
mEngine.runOnUpdateThread(new Runnable() {
@Override
public void run() { Debug.d("Message 2") }
});
/* The output will be:
Message 2
Message 1
*/
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment