aboutsummaryrefslogtreecommitdiffstats
path: root/src/eu/siacs/conversations/services/EventReceiver.java
diff options
context:
space:
mode:
authorDaniel Gultsch <daniel@gultsch.de>2014-03-06 04:15:40 +0100
committerDaniel Gultsch <daniel@gultsch.de>2014-03-06 04:15:40 +0100
commita73cc24c3f00b1e5f2fd5dc8237d8d4c699dd676 (patch)
tree3a7add992f728cd60c933c54d0de72e1d88aed6d /src/eu/siacs/conversations/services/EventReceiver.java
parent1124ded2005fa5b0b9504bac383743e31212bab7 (diff)
parent0168f185ebb209dbfb69cb19bf221354c9a8561a (diff)
Merge branch 'watchdog'
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);
+ }
+
+}