protected transient Void doInBackground(Void avoid[]) {
   if (mGcm == null) {
     mGcm = GoogleCloudMessaging.getInstance(getContext());
   }
   SLog.dWithTag("GCMRegService", "Unregistering...");
   mAppController.clearGcmRegId(mRegId, mUserId, mSessionKey);
   GCMRegistrationService.getGCMPreferences(getContext()).edit().clear().commit();
   return null;
 }
 public void onGcmRegistrationComplete(String s, int i, String s1, long l) {
   if (i == 200 && l > 0L) {
     SLog.dWithTag(
         "GCMRegService",
         "GCM registration completed successfully; saving regId and stopping service now.");
     s = GCMRegistrationService.getGCMPreferences(GCMRegistrationService.this).edit();
     s.putBoolean("registrationIdSent", true);
     s.commit();
   }
   stopService();
 }