Activity as Broadcast receiver

In this post I show how to instantiate a broadcast receiver in an activity. An example for which this kind of broadcast receiver is useful is when calling the GCM library service to register/unregister from the GCM servers. When the service asynchronously receives the response from GCM servers, if the …