diff options
author | Daniel Gultsch <daniel@gultsch.de> | 2014-03-06 04:15:40 +0100 |
---|---|---|
committer | Daniel Gultsch <daniel@gultsch.de> | 2014-03-06 04:15:40 +0100 |
commit | a73cc24c3f00b1e5f2fd5dc8237d8d4c699dd676 (patch) | |
tree | 3a7add992f728cd60c933c54d0de72e1d88aed6d /src/eu/siacs/conversations/services/EventReceiver.java | |
parent | 1124ded2005fa5b0b9504bac383743e31212bab7 (diff) | |
parent | 0168f185ebb209dbfb69cb19bf221354c9a8561a (diff) |
Merge branch 'watchdog'
Diffstat (limited to 'src/eu/siacs/conversations/services/EventReceiver.java')
-rw-r--r-- | src/eu/siacs/conversations/services/EventReceiver.java | 19 |
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); + } + +} |