final Handler myHandler = new Handler(){
       @Override
    public void handleMessage(Message msg) {
          updateUI((String)msg.obj);
    }

};

Would someone please let me know what the curly brace '{' and its contents mean in this context? what is the purpose?

To make myself clearer, I have problem with the syntax rather than the code.

It's called an anonymous inner class, it defines a new subclass of Handler and creates an instance of it. Google Java anonymous inner class for tutorials etc.

commented: Very helpful. Thank you. +0