Registration confusion Android GCM

android, android-c2dm, google-cloud-messaging

Solution

They are actually the same thing. The second one encapsulates the first one in a static method and registers a broadcast receiver. You can attach the source to the gcm.jar and see for yourself. You can find source code in ~/android-sdks/extras/google/gcm/gcm-client/gcm-src.jar

Problem

I am trying to migrate to `GCM` in Android, `C2DM` now being deprecated. The registration process described here is different from registration described here. Are both registration same? Can we see code for `GCMRegistrar` to know for sure?

Original source