In android , Handler can be used to post / handle message, if I don't use a HandlerThread (pass its Looper to Handler), does that mean in this case Handler use MainThread (UI Thread) 's Looper ?
What result will get if Handler uses MainThread's Looper ? May cause mainThread blocked ?
As Doc says :
HanderThread
class inherits from the Thread class, which encapsulates the Looper object, so that we do not care The Looper open and release details. Like in case of normal thread we need to useLooper.prepare()
andLooper.loop()
to convert it as aLooperThread
.