diff options
author | Daniel Gultsch <daniel@gultsch.de> | 2014-03-06 00:00:16 +0100 |
---|---|---|
committer | Daniel Gultsch <daniel@gultsch.de> | 2014-03-06 00:00:16 +0100 |
commit | e4f61da07924e9440cde5b92c4364b1310c64ce5 (patch) | |
tree | 84bb8190768b677ef34094ede5817571ca466ec8 /src/eu/siacs/conversations/services/EventReceiver.java | |
parent | 1124ded2005fa5b0b9504bac383743e31212bab7 (diff) |
start service on boot
Diffstat (limited to '')
-rw-r--r-- | src/eu/siacs/conversations/services/EventReceiver.java | 17 |
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); + } + +} |