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.java19
1 files changed, 19 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..d58fb2ec
--- /dev/null
+++ b/src/eu/siacs/conversations/services/EventReceiver.java
@@ -0,0 +1,19 @@
+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() != null)
+ && (intent.getAction()
+ .equals("android.intent.action.BOOT_COMPLETED"))) {
+
+ }
+ context.startService(mIntentForService);
+ }
+
+}