I can write the following code in the main thread without worrying that the 2nd Message will not be received as execution has finished....

public class MessageHandler extends Handler{

     public void handleMessage(Message msg) {
              // process incoming messages here

Does This mean unlike a message handler built inside a worker thread, where a 2nd message handling would not be possible (without a looper), Main thread by default maintains a message-queue ? And handle message can be called repeatedly ?

Related posts

Recent Viewed