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 org.telegram.messenger.SmsListener.java

public class SmsListener extends BroadcastReceiver {

    private SharedPreferences preferences;

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

From source file com.example.android.automessagingcodelab.MessageReplyReceiver.java

/**
 * A receiver that gets called when a reply is sent to a given conversationId
 */
public class MessageReplyReceiver extends BroadcastReceiver {

    private static final String TAG = MessageReplyReceiver.class.getSimpleName();

From source file com.android.mms.ui.SmsStorageMonitor.java

public class SmsStorageMonitor extends BroadcastReceiver {
    private Context mContext;
    private final int NOTIFICATION_STORAGE_LIMITED_ID = -1;
    private static NotificationManager mNotificationManager;

    public static final String ACTION_DEVICE_STORAGE_FULL = "android.intent.action.DEVICE_STORAGE_FULL";

From source file com.example.android.support.wearable.notifications.NotificationIntentReceiver.java

/**
 * Broadcast receiver to post toast messages in response to notification intents firing.
 */
public class NotificationIntentReceiver extends BroadcastReceiver {
    public static final String ACTION_EXAMPLE = "com.example.android.support.wearable.notifications.ACTION_EXAMPLE";
    public static final String ACTION_ENABLE_MESSAGES = "com.example.android.support.wearable.notifications.ACTION_ENABLE_MESSAGES";

From source file com.clockworkmod.billing.BillingReceiver.java

/**
 * This class implements the broadcast receiver for in-app billing. All asynchronous messages from
 * Android Market come to this app through this receiver. This class forwards all
 * messages to the {@link BillingService}, which can start background threads,
 * if necessary, to process the messages. This class runs on the UI thread and must not do any
 * network I/O, database updates, or any tasks that might take a long time to complete.

From source file com.google.android.gms.samples.appinvite.ReferrerReceiver.java

public class ReferrerReceiver extends BroadcastReceiver {

    public ReferrerReceiver() {
    }

    @Override

From source file com.android.talkback.BootReceiver.java

public class BootReceiver extends BroadcastReceiver {

    @Override
    public void onReceive(Context context, Intent intent) {
        TalkBackService service = TalkBackService.getInstance();
        if (service == null) {

From source file com.hybris.mobile.app.commerce.broadcast.NetworkChangeBroadcastReceiver.java

/**
 * Broadcast receiver for network change
 */
public class NetworkChangeBroadcastReceiver extends BroadcastReceiver {
    private static final String TAG = NetworkChangeBroadcastReceiver.class.getCanonicalName();

From source file com.spoiledmilk.cykelsuperstier.reminders.AlarmReceiver.java

public class AlarmReceiver extends BroadcastReceiver {

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

        if (getAbortBroadcast()) {

From source file fr.simon.marquis.installreferrer.ReferrerReceiver.java

public class ReferrerReceiver extends BroadcastReceiver {
    public static final String ACTION_UPDATE_DATA = "ACTION_UPDATE_DATA";
    private static final String ACTION_INSTALL_REFERRER = "com.android.vending.INSTALL_REFERRER";
    private static final String KEY_REFERRER = "referrer";

    public ReferrerReceiver() {