Back to project page SurveySDK_android.
The source code is released under:
Apache License
If you think the Android project SurveySDK_android listed in this page is inappropriate, such as containing malicious code/tools or violating the copyright, please email info at java2s dot com, thanks.
package com.survey.android.c2dm; /*from www . j a va 2s. c o m*/ import java.util.Date; import android.content.BroadcastReceiver; import android.content.Context; import android.content.Intent; import com.survey.android.util.Log; import com.survey.android.util.Toiler; public class C2DMTokenRefresher extends BroadcastReceiver { private static final String TAG = "C2DMTokenRefresher"; @SuppressWarnings("deprecation") @Override public void onReceive(Context context, Intent intent) { Log.d(TAG, "date Received: " + new Date().toGMTString()); Toiler.refreshAndScheduleNotificationToken(context.getApplicationContext()); } }