title: GCM in android what else
body: <p>I would like to implement google cloud messaging in my app. I have a class GCMIntentService, I add permissions to manifest and add this code to Main activity:</p>
  
  <pre><code>checkNotNull(SENDER_ID, "SENDER_ID");
  GCMRegistrar.checkDevice(this);
  GCMRegistrar.checkManifest(this);
  
  requestWindowFeature(Window.FEATURE_ACTION_BAR);
  setContentView(R.layout.activity_main);
  extras = getIntent().getExtras();
  
  if (savedInstanceState == null) {
  
      if (extras == null) {
  
          GlobalConfig.setAPPLICATION_ID(APP_ID);
  
      } else {
  
          GlobalConfig.setAPPLICATION_ID(extras.getInt("application_id", 0));
      }
  
  } else {
  
      MY_DEBUG.print("SavedInstanceState is not null");
  
  }
  
  GlobalConfig.setBookmark(0);
  
  //notifications
  final String regId = GCMRegistrar.getRegistrationId(this);
  Log.i(TAG, "registration id  " + regId);
  
  if (regId.equals("")) {
  
  
      GCMRegistrar.register(this, SENDER_ID);
  
  } else {
  
      Log.v(TAG, "Already registered");
  
  }
  </code></pre>
  
  <p>I get RegId, but what I need else to get messages from google? I connect with webservice. I need to send this regId to service? What should be my next step?</p>