android-looper
Handlers, MessageQueue, Looper, do they all run on the UI thread?
Short answer: they all run on the same thread. If instantiated from an Activity lifecycle callback, they all run on the main UI thread. Long answer: A thread may have a Looper, which contains a MessageQueue. In order to use this facility, you would have to create a Looper on the current thread by calling … Read more
What is the purpose of Looper and how to use it?
What is Looper? Looper is a class which is used to execute the Messages(Runnables) in a queue. Normal threads have no such queue, e.g. simple thread does not have any queue. It executes once and after method execution finishes, the thread will not run another Message(Runnable). Where we can use Looper class? If someone wants … Read more