aboutsummaryrefslogtreecommitdiffstats
path: root/samples/gradle-sample/ExampleApplication/app/src/main/java/com/example/adnan/myapplication/DeleteIntentReceiver.java
blob: c96464cd9213d8e8ad0a002ae0f8bd5f0720733f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
package com.example.test.myapplication;

import android.content.BroadcastReceiver;
import android.content.Context;
import android.content.Intent;
import android.widget.Toast;

/**
 * Created by test on 8/7/15.
 */
public class DeleteIntentReceiver extends BroadcastReceiver {

    public static final String DELETE_ACTION = "com.example.test.myapplication.ACTION_DELETED";

    @Override
    public void onReceive(Context context, Intent intent) {
        if (DELETE_ACTION.equals(intent.getAction())) {
            Toast.makeText(context, "WE WERE DELETED", Toast.LENGTH_SHORT).show();
        }
    }
}