title: How to create server for GCM project in Android
body: <p>I am creating a project on <a href="http://en.wikipedia.org/wiki/Google_Cloud_Messaging" rel="nofollow">Google Cloud Messaging</a> (GCM) and am following <a href="http://developer.android.com/guide/google/gcm/gs.html" rel="nofollow">this tutorial</a>.</p>
  
  <p>I am done with the client-side work and set up the device on the client side. Also I had registered the device using the following code.</p>
  
  <pre><code>public void onCreate(Bundle savedInstanceState) {
      super.onCreate(savedInstanceState);
      setContentView(R.layout.main);
      GCMRegistrar.checkDevice(this);
      GCMRegistrar.checkManifest(this);
      final String regId = GCMRegistrar.getRegistrationId(this);
      if (regId.equals("")) {
          GCMRegistrar.register(this, "483910217912");
          Log.d(tag, "Registered");
      }
      else {
          Log.v(tag, "Already registered");
      }
  }
  </code></pre>
  
  <p>Now I am stuck at a point to create server for my GCM project. Note that I am creating a project to notify when a new message is received. However, I had not implemented the service to receive a message, but I will implement it when the server setting is finished.</p>