Skip to content
Arasthel edited this page Aug 21, 2014 · 6 revisions

This annotation will execute the code inside the method on the UI Thread.

Example

@OnUIThread()
public boolean getResult(){...}

// If myVariable declaration is done on the UI Thread
boolean myVariable = getResult();