I am trying to run demo SamplePush application of GCM. When I install it first time the textview show me blank when I again run it I can see the registrationID on textview.
The tutorial I am referring to is: http://android.amolgupta.in/2012/07/google-cloud-messaging-gcm-tutorial.html
Does anyone know why this is so? Is there is any solution to solve it?
This is due to the fact that this is a asyncron operation. You fire one intent to request an ID and at some point you get a Broadcast with the ID which then gets saved