I am calling a Toast from GCMIntentService. When Google returns a "registration ID" on successful registration via "onRegistered" method, then I send the phone number and the "registration ID" to our server. If it is successful then I show the Toast.