Skip to main content

What will happen to a handler if the looper it is handling is quit?



I have a thread handler which handles the looper of a "worker" thread. At some point in my Activity's lifecycle, I am calling "quit" method on the worker thread which releases its current looper. Then what will happen to the (worker) thread handler?




Comments

  1. once you call quit on looper, it will discard all the messages in que and will not take further messages.

    ReplyDelete

Post a Comment

Popular posts from this blog

Slow Android emulator

I have a 2.67 GHz Celeron processor, 1.21 GB of RAM on a x86 Windows XP Professional machine. My understanding is that the Android emulator should start fairly quickly on such a machine, but for me it does not. I have followed all instructions in setting up the IDE, SDKs, JDKs and such and have had some success in staring the emulator quickly but is very particulary. How can I, if possible, fix this problem?