StarWarsUtils.getDecisionToRetry(context); StarWarsUtils.makeDecision(decisionToRetry, context); } public class ConnectivityChangeReceiver extends WakefulBroadcastReceiver
GooglePlayServicesUtil.isGooglePlayServicesAvailable(this); if (resultCode == ConnectionResult.SUCCESS) { mGcmNetworkManager.schedule(task); } else { // Deal with this networking task some other way }
public class BestTimeService extends GcmTaskService { @Override public void onInitializeTasks() { super.onInitializeTasks(); // Reschedule removed tasks here } }