conversations-classic/src/eu/siacs/conversations/services/EventReceiver.java
Daniel Gultsch 0d516b0603 ping stuff
2014-03-11 15:44:22 +01:00

20 lines
546 B
Java

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) {
mIntentForService.setAction(intent.getAction());
} else {
mIntentForService.setAction("other");
}
context.startService(mIntentForService);
}
}