GCM now calls the method in main activity

WHen the GCM arrives to the app, the method is called in the main
actvity. I am still trying to figure how to change the UI when the GCM
arrives. Basically I am trying to call UI thread in order to make
changes in UI elemnts by using handlers. need help with that.