In an android service I have created thread(s) for doing some background task.
I have a situation where a thread needs to post certain task on main thread\'s message
More precise Kotlin code using handler :
Handler(Looper.getMainLooper()).post { // your codes here run on main Thread }