diff --git a/docs/html/google/gcm/c2dm.jd b/docs/html/google/gcm/c2dm.jd index 381460edeb60b..e8a7edb4249da 100644 --- a/docs/html/google/gcm/c2dm.jd +++ b/docs/html/google/gcm/c2dm.jd @@ -75,7 +75,7 @@ page.title=Migration
Canonical registration ID
There may be situations where the server ends up with 2 registration IDs for the same device. If the GCM response contains a registration ID, simply replace the registration ID you have with the one provided. With this feature your application doesn't need to send the device ID to your server anymore. For more information, see Advanced Topics.
-

GCM also provides helper libraries (client and server) to make writing your code easier.

+

GCM also provides client and server helper libraries to make writing your code easier.

Relationship between C2DM and GCM

diff --git a/docs/html/google/gcm/demo.jd b/docs/html/google/gcm/demo.jd index 6dfae2d967c11..1b6b36808f935 100644 --- a/docs/html/google/gcm/demo.jd +++ b/docs/html/google/gcm/demo.jd @@ -38,11 +38,7 @@ page.title=GCM Demo Application
  • A web server containing a page where you can send messages.
  • An Android application that receives and displays such messages.
  • -

    Here is the API reference documentation for the helper libraries on which the demo is based:

    - +

    See the reference for the client and server helper libraries used in this demo.

    The sections below describe how to download the demo code and helper libraries from the SDK Manager. The demo code and helper libraries are also available at the open source site. diff --git a/docs/html/google/gcm/gs.jd b/docs/html/google/gcm/gs.jd index df13373efe7d8..37ef684f8282d 100644 --- a/docs/html/google/gcm/gs.jd +++ b/docs/html/google/gcm/gs.jd @@ -25,7 +25,7 @@ page.title=GCM: Getting Started -

    This document describes how to write an Android application and the server-side logic, using the helper libraries (client and server) provided by GCM.

    +

    This document describes how to write an Android application and the server-side logic, using the client and server helper libraries provided by GCM.

    Creating a Google API project

    @@ -85,7 +85,9 @@ page.title=GCM: Getting Started

    Note: If you need to rotate the key, click Generate new key. A new key will be created while the old one will still be active for up to 24 hours. If you want to get rid of the old key immediately (for example, if you feel it was compromised), click Delete key.

    Install the Helper Libraries

    -

    To perform the steps described in the following sections, you must first install the helper libraries (reference: client and server). From the SDK Manager, install Extras > Google Cloud Messaging for Android Library. This creates a gcm directory under YOUR_SDK_ROOT/extras/google/ containing these subdirectories: gcm-client, gcm-server, samples/gcm-demo-client, samples/gcm-demo-server, and samples/gcm-demo-appengine.

    +

    To perform the steps described in the following sections, you must first install the +helper libraries. +From the SDK Manager, install Extras > Google Cloud Messaging for Android Library. This creates a gcm directory under YOUR_SDK_ROOT/extras/google/ containing these subdirectories: gcm-client, gcm-server, samples/gcm-demo-client, samples/gcm-demo-server, and samples/gcm-demo-appengine.

    Note: If you don't see Extras > Google Cloud Messaging for Android Library in the SDK Manager, make sure you are running version 20 or higher. Be sure to restart the SDK Manager after updating it.

    @@ -137,7 +139,7 @@ page.title=GCM: Getting Started
    <service android:name=".GCMIntentService" />
    -

    This intent service will be called by the GCMBroadcastReceiver (which is is provided by GCM library), as shown in the next step. It must be a subclass of com.google.android.gcm.GCMBaseIntentService, must contain a public constructor, and should be named my_app_package.GCMIntentService (unless you use a subclass of GCMBroadcastReceiver that overrides the method used to name the service).

    +

    This intent service will be called by the GCMBroadcastReceiver (which is provided by the GCM library), as shown in the next step. It must be a subclass of com.google.android.gcm.GCMBaseIntentService, must contain a public constructor, and should be named my_app_package.GCMIntentService (unless you use a subclass of GCMBroadcastReceiver that overrides the method used to name the service).

    The intent service must also define its sender ID(s). It does this as follows: