Both codes work the same, conventionally you use Handler.postRunnable when you want to execute some code on the UI Thread without having to ...
stackoverflow.com