title: Handling registration ID changes in Google Cloud Messaging on Android
body: <p>In the docs on Google Cloud Messaging, it states:</p>
  
  <blockquote>
    <p>The Android application should store this ID for later use (for
    instance, to check on onCreate() if it is already registered). Note
    that Google may periodically refresh the registration ID, so you
    should design your Android application with the understanding that the
    com.google.android.c2dm.intent.REGISTRATION intent may be called
    multiple times. Your Android application needs to be able to respond
    accordingly.</p>
  </blockquote>
  
  <p>I register my device using the following code:</p>
  
  <pre><code>GoogleCloudMessaging gcm = GoogleCloudMessaging.getInstance(context);
  String regID = gcm.register(senderID);
  </code></pre>
  
  <p>The GoogleCloudMessaging class encapsulates the registration process. So how am I suppose to handle com.google.android.c2dm.intent.REGISTRATION since handling that is done internally by the GoogleCloudMessaging class?</p>