Android Snippet. How to quickly run code on the main thread

Here's a simple code snippet that enables you to run a Runnable object on the main thread, or UI thread. This is very handy if you have to update your UI from a background thread or an AsyncTask. It does not require something in particular, this code can be run from everywhere inside your application:... Continue Reading →


Blog at

Up ↑