edu.columbia.irt.mobiledyswis
Class C2DMReceiver

java.lang.Object
  extended by IntentService
      extended by com.google.android.c2dm.C2DMBaseReceiver
          extended by edu.columbia.irt.mobiledyswis.C2DMReceiver

public class C2DMReceiver
extends com.google.android.c2dm.C2DMBaseReceiver

Android Cloud to Device Service class

Author:
Jin Hyung Park (jp2105)

Field Summary
static java.lang.String ME
           
 
Fields inherited from class com.google.android.c2dm.C2DMBaseReceiver
ERR_ACCOUNT_MISSING, ERR_AUTHENTICATION_FAILED, ERR_INVALID_PARAMETERS, ERR_INVALID_SENDER, ERR_PHONE_REGISTRATION_ERROR, ERR_SERVICE_NOT_AVAILABLE, ERR_TOO_MANY_REGISTRATIONS, EXTRA_ERROR, EXTRA_REGISTRATION_ID, EXTRA_UNREGISTERED, REGISTRATION_CALLBACK_INTENT
 
Constructor Summary
C2DMReceiver()
          The constructor function
 
Method Summary
 void onError(Context context, java.lang.String errorId)
          Called on registration error.
 void onRegistered(Context context, java.lang.String registrationId)
          Called when a registration token has been received.
 
Methods inherited from class com.google.android.c2dm.C2DMBaseReceiver
onHandleIntent, onUnregistered
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

ME

public static final java.lang.String ME
See Also:
Constant Field Values
Constructor Detail

C2DMReceiver

public C2DMReceiver()
The constructor function

Method Detail

onRegistered

public void onRegistered(Context context,
                         java.lang.String registrationId)
                  throws java.io.IOException
Description copied from class: com.google.android.c2dm.C2DMBaseReceiver
Called when a registration token has been received.

Overrides:
onRegistered in class com.google.android.c2dm.C2DMBaseReceiver
Throws:
java.io.IOException

onError

public void onError(Context context,
                    java.lang.String errorId)
Description copied from class: com.google.android.c2dm.C2DMBaseReceiver
Called on registration error. Override to provide better error messages. This is called in the context of a Service - no dialog or UI.

Specified by:
onError in class com.google.android.c2dm.C2DMBaseReceiver