aboutsummaryrefslogtreecommitdiffstats
path: root/src/eu/siacs/conversations/services/EventReceiver.java
diff options
context:
space:
mode:
Diffstat (limited to 'src/eu/siacs/conversations/services/EventReceiver.java')
-rw-r--r--src/eu/siacs/conversations/services/EventReceiver.java17
1 files changed, 17 insertions, 0 deletions
diff --git a/src/eu/siacs/conversations/services/EventReceiver.java b/src/eu/siacs/conversations/services/EventReceiver.java
new file mode 100644
index 00000000..41e31114
--- /dev/null
+++ b/src/eu/siacs/conversations/services/EventReceiver.java
@@ -0,0 +1,17 @@
+package eu.siacs.conversations.services;
+
+import android.content.BroadcastReceiver;
+import android.content.Context;
+import android.content.Intent;
+
+public class EventReceiver extends BroadcastReceiver {
+ @Override
+ public void onReceive(Context context, Intent intent) {
+ Intent mIntentForService = new Intent(context, XmppConnectionService.class);
+ if (intent.getAction().equals("android.intent.action.BOOT_COMPLETED")) {
+
+ }
+ context.startService(mIntentForService);
+ }
+
+}