aboutsummaryrefslogtreecommitdiffstats
path: root/src/main/java/de/pixart/messenger/services/AlarmReceiver.java
diff options
context:
space:
mode:
Diffstat (limited to 'src/main/java/de/pixart/messenger/services/AlarmReceiver.java')
-rw-r--r--src/main/java/de/pixart/messenger/services/AlarmReceiver.java21
1 files changed, 21 insertions, 0 deletions
diff --git a/src/main/java/de/pixart/messenger/services/AlarmReceiver.java b/src/main/java/de/pixart/messenger/services/AlarmReceiver.java
new file mode 100644
index 000000000..0fd3ba049
--- /dev/null
+++ b/src/main/java/de/pixart/messenger/services/AlarmReceiver.java
@@ -0,0 +1,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);
+ }
+ }
+}