I am doing chat messenger using GCM. And here is my question, how can I update UI without using broadcastreceiver, because I'm using GcmListenerService, according to GCM documentation
@Override public void onMessageReceived(String from, Bundle data) {
String message = data.getString("message");
Log.d(TAG, "From: " + from);
Log.d(TAG, "Message: " + message);
// Handle received message here. }
I am receiving push notifications from my server, but I dont know how to handle received messages to update UI of my activity.