SyntaxFix
Write A Post
Hire A Developer
Questions
There is a fourth way using Handler
Handler
new Handler().post(new Runnable() { @Override public void run() { // Code here will run in UI thread } });