Android: Posting Message To Handlerthread Makes Ui Thread Unresponsive Or Gives Illegalstateexception
I am trying to make use of HandlerThread in android and am ending up with either a situation in which the UI thread is not responding anymore, or a strange IllegalStateException. I
Solution 1:
Got it. Obsiously the situation about recycling messages is this:
If you send it to a handler, the handler/looper will recycle it for you.
So one must not recycle the message within handleMessage
.
Post a Comment for "Android: Posting Message To Handlerthread Makes Ui Thread Unresponsive Or Gives Illegalstateexception"