blob: 0fd3ba0492c52c5f0e398b5b75fd9eae56e5433a (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
|
package de.pixart.messenger.services;
import android.content.BroadcastReceiver;
import android.content.Context;
import android.content.Intent;
import android.util.Log;
import de.pixart.messenger.Config;
public class AlarmReceiver extends BroadcastReceiver{
public static final int SCHEDULE_ALARM_REQUEST_CODE = 523976483;
@Override
public void onReceive(Context context, Intent intent) {
if (intent.getAction().contains("exportlogs")) {
Log.d(Config.LOGTAG, "Received alarm broadcast to export logs");
Intent i = new Intent(context, ExportLogsService.class);
context.startService(i);
}
}
}
|