Example usage for android.support.v4.content WakefulBroadcastReceiver subclass-usage

List of usage examples for android.support.v4.content WakefulBroadcastReceiver subclass-usage

Introduction

In this page you can find the example usage for android.support.v4.content WakefulBroadcastReceiver subclass-usage.

Usage

From source file com.opentaxi.android.GcmBroadcastReceiver.java

/**
 * This {@code WakefulBroadcastReceiver} takes care of creating and managing a
 * partial wake lock for your app. It passes off the work of processing the GCM
 * message to an {@code IntentService}, while ensuring that the device does not
 * go back to sleep in the transition. The {@code IntentService} calls
 * {@code GcmBroadcastReceiver.completeWakefulIntent()} when it is ready to

From source file com.google.android.apps.muzei.NetworkChangeReceiver.java

public class NetworkChangeReceiver extends WakefulBroadcastReceiver {
    @Override
    public void onReceive(Context context, Intent intent) {
        if (intent == null || !ConnectivityManager.CONNECTIVITY_ACTION.equals(intent.getAction())) {
            return;
        }

From source file kr.ac.kookmin.cs.firstcoin.pos.data.GcmBroadcastReceiver.java

/**
 * This {@code WakefulBroadcastReceiver} takes care of creating and managing a
 * partial wake lock for your app. It passes off the work of processing the GCM
 * message to an {@code IntentService}, while ensuring that the device does not
 * go back to sleep in the transition. The {@code IntentService} calls
 * {@code GcmBroadcastReceiver.completeWakefulIntent()} when it is ready to

From source file org.microg.gms.checkin.TriggerReceiver.java

public class TriggerReceiver extends WakefulBroadcastReceiver {
    private static final String TAG = "GmsCheckinTrigger";
    public static final String PREF_ENABLE_CHECKIN = "checkin_enable_service";
    private static final long REGULAR_CHECKIN_INTERVAL = 12 * 60 * 60 * 1000; // 12 hours

    @Override

From source file com.cpd.receivers.BootUpReceiver.java

/**
 * Receiver to set library auto-renew when Android starts.
 *
 * @author Alan Wink
 * @author Theodoro Mota
 * @version 2.0

From source file com.playtech.ezpush.gcm.GcmBroadcastReceiver.java

/**
 * This {@code WakefulBroadcastReceiver} takes care of creating and managing a
 * partial wake lock for your app. It passes off the work of processing the GCM
 * message to an {@code IntentService}, while ensuring that the device does not
 * go back to sleep in the transition. The {@code IntentService} calls
 * {@code GcmBroadcastReceiver.completeWakefulIntent()} when it is ready to

From source file it.rainbowbreeze.playtog.logic.GcmBroadcastReceiver.java

/**
 * Created by alfredomorresi on 07/01/15.
 */
public class GcmBroadcastReceiver extends WakefulBroadcastReceiver {
    @Override
    public void onReceive(Context context, Intent intent) {

From source file com.commonsware.android.wakecast.PollReceiver.java

public class PollReceiver extends WakefulBroadcastReceiver {
    private static final int PERIOD = 900000; // 15 minutes
    private static final int INITIAL_DELAY = 5000; // 5 seconds

    @Override
    public void onReceive(Context ctxt, Intent i) {

From source file com.kinoma.kinomaplay.GcmBroadcastReceiver.java

public class GcmBroadcastReceiver extends WakefulBroadcastReceiver {
    @Override
    public void onReceive(Context context, Intent intent) {
        Log.i("kinoma", "GcmBroadcastReceiver.onReceive:" + intent.getAction());
        ComponentName comp = new ComponentName(context.getPackageName(), GcmIntentService.class.getName());
        startWakefulService(context, (intent.setComponent(comp)));

From source file org.kontalk.service.gcm.GcmBroadcastReceiver.java

/**
 * Broadcast receiver for Google Cloud Messaging.
 * http://code.google.com/p/gcm
 */
public class GcmBroadcastReceiver extends WakefulBroadcastReceiver {