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.jmstudios.redmoon.receiver.AutomaticFilterChangeReceiver.java

public class AutomaticFilterChangeReceiver extends BroadcastReceiver {
    private static final String TAG = "AutomaticFilterChange";
    private static final boolean DEBUG = false;

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

From source file com.mattprecious.prioritysms.receiver.AlarmReceiver.java

/**
 * Glue class: connects AlarmAlert IntentReceiver to AlarmAlert activity. Passes through Alarm ID.
 */
public class AlarmReceiver extends BroadcastReceiver {
    private static final String TAG = AlarmReceiver.class.getSimpleName();
    private static final long[] VIBRATE_PATTERN = { 150, 150, 150, 150, 150 };

From source file com.android.launcher4.InstallShortcutReceiver.java

public class InstallShortcutReceiver extends BroadcastReceiver {
    private static final String TAG = "InstallShortcutReceiver";
    private static final boolean DBG = false;

    public static final String ACTION_INSTALL_SHORTCUT = "com.android.launcher.action.INSTALL_SHORTCUT";

From source file me.acristoffers.tracker.AlarmReceiver.java

public class AlarmReceiver extends BroadcastReceiver implements Package.StatusReady {

    private final HashMap<String, Integer> countSteps = new HashMap<>();
    private WeakReference<Context> context;

    public static void setAlarm(final Context context) {

From source file com.dattasmoon.pebble.plugin.FireReceiver.java

public class FireReceiver extends BroadcastReceiver {

    @Override
    public void onReceive(final Context context, final Intent intent) {
        if (com.twofortyfouram.locale.Intent.ACTION_FIRE_SETTING.equals(intent.getAction())) {
            // fetch this for later, we may need it in case we change things

From source file co.carlosandresjimenez.android.gotit.notification.AlarmReceiver.java

/**
 * Created by carlosjimenez on 11/13/15.
 * <p/>
 * When the alarm fires, this BroadcastReceiver receives the broadcast Intent
 * and then starts the IntentService {@code SchedulingService} to do some work.
 */

From source file edu.cmu.cylab.starslinger.util.NotificationBroadcastReceiver.java

public class NotificationBroadcastReceiver extends BroadcastReceiver {

    @Override
    public void onReceive(Context context, Intent intent) {
        if (intent != null) {
            int allCount = intent.getExtras().getInt(extra.NOTIFY_COUNT, 0);

From source file com.sean.takeastand.alarmprocess.AlarmReceiver.java

public class AlarmReceiver extends BroadcastReceiver {
    private static final String TAG = "AlarmReceiver";
    private Context mContext;

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

From source file io.github.runassudo.launchert.InstallShortcutReceiver.java

public class InstallShortcutReceiver extends BroadcastReceiver {
    private static final String TAG = "InstallShortcutReceiver";
    private static final boolean DBG = false;

    public static final String ACTION_INSTALL_SHORTCUT = "com.android.launcher.action.INSTALL_SHORTCUT";

From source file com.ddj.launcher2.InstallShortcutReceiver.java

public class InstallShortcutReceiver extends BroadcastReceiver {
    public static final String ACTION_INSTALL_SHORTCUT = "com.android.launcher.action.INSTALL_SHORTCUT";
    public static final String NEW_APPS_PAGE_KEY = "apps.new.page";
    public static final String NEW_APPS_LIST_KEY = "apps.new.list";

    public static final String DATA_INTENT_KEY = "intent.data";