Example usage for android.content BroadcastReceiver subclass-usage

List of usage examples for android.content BroadcastReceiver subclass-usage

Introduction

In this page you can find the example usage for android.content BroadcastReceiver subclass-usage.

Usage

From source file com.lumysoft.lumyd.GcmBroadcastReceiver.java

/**
 * Handling of GCM messages.
 */
public class GcmBroadcastReceiver extends BroadcastReceiver {
    public static final int NOTIFICATION_ID = 1;
    private NotificationManager mNotificationManager;

From source file com.commonsware.android.ordered.NoticeReceiver.java

public class NoticeReceiver extends BroadcastReceiver {
    private static final int NOTIFY_ME_ID = 1337;

    @Override
    public void onReceive(Context ctxt, Intent intent) {
        NotificationManager mgr = (NotificationManager) ctxt.getSystemService(Context.NOTIFICATION_SERVICE);

From source file com.gigathinking.simpleapplock.ResetUnlockReceiver.java

public class ResetUnlockReceiver extends BroadcastReceiver {
    public ResetUnlockReceiver() {
    }

    @Override
    public void onReceive(Context context, Intent intent) {

From source file com.gerolab.sdksample.SleepStateReceiver.java

/**
 * Receives com.getgero.motionsdk.service.ACTION_SIGNIFICANT_MOVEMENT_AFTER_SLEEP event.
 */
public class SleepStateReceiver extends BroadcastReceiver {
    public void onReceive(Context context, Intent intent) {
        long startTime = intent.getLongExtra(GeroAccelerometerService.EXTRA_SLEEP_START_TIME, 0);

From source file edu.rosehulman.gcmtutorialandroid.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.rowland.movies.data.broadcastrecievers.DataSetChangeBroadCastReceiver.java

/**
 * Created by Oti Rowland on 12/21/2015.
 */
public class DataSetChangeBroadCastReceiver extends BroadcastReceiver {
    // The class Log identifier
    private static final String LOG_TAG = DataSetChangeBroadCastReceiver.class.getSimpleName();

From source file com.prey.receivers.C2DMReceiver.java

public class C2DMReceiver extends BroadcastReceiver {

    @Override
    public void onReceive(Context context, Intent intent) {
        if (intent.getAction().equals("com.google.android.c2dm.intent.REGISTRATION")) {
            handleRegistration(context, intent);

From source file com.farmerbb.taskbar.receiver.DisableHomeReceiver.java

public class DisableHomeReceiver extends BroadcastReceiver {
    @Override
    public void onReceive(Context context, Intent intent) {
        SharedPreferences pref = U.getSharedPreferences(context);
        pref.edit().putBoolean("launcher", false).apply();

From source file com.rowland.moviesquire.data.broadcastrecievers.DataSetChangeBroadCastReceiver.java

/**
 * Created by Oti Rowland on 12/21/2015.
 */
public class DataSetChangeBroadCastReceiver extends BroadcastReceiver {
    // The class Log identifier
    private static final String LOG_TAG = DataSetChangeBroadCastReceiver.class.getSimpleName();

From source file com.ademsha.appnotifico.NotificationHubCommandReceiver.java

public class NotificationHubCommandReceiver extends BroadcastReceiver {

    private NotificationHub notificationHub;

    public NotificationHubCommandReceiver(final NotificationHub notificationHub) {
        this.notificationHub = notificationHub;