public int onStartCommand(Intent intent, int i, int j) {
   SLog.dWithTag(
       "GCMRegService",
       (new StringBuilder())
           .append("onStartCommand, startId=")
           .append(j)
           .append(", startIds=")
           .append(mStartIds.toString())
           .toString());
   mStartIds.add(Integer.valueOf(j));
   if (intent == null) {
     return 2;
   }
   String s = getRegistrationId();
   SLog.dWithTag(
       "GCMRegService",
       (new StringBuilder())
           .append("Starting GCM registration service with regId=")
           .append(s)
           .toString());
   long l = intent.getLongExtra("user_id", 0L);
   String s1 = intent.getAction();
   if ("co.vine.android.gcm.REGISTER".equals(s1)) {
     if (s == null) {
       (new GCMRegisterTask(l)).execute(new Void[0]);
       return 2;
     }
     if (!getGCMPreferences(this).getBoolean("registrationIdSent", false)) {
       mAppController.sendGcmRegId(s, l);
       return 2;
     } else {
       stopService();
       return 2;
     }
   }
   if ("co.vine.android.gcm.UNREGISTER".equals(s1)) {
     (new GCMUnregisterTask(s, l, intent.getStringExtra("s_key"))).execute(new Void[0]);
     return 2;
   } else {
     stopService();
     return 2;
   }
 }