forked from upstream-mirrors/quik
4f840b5746
Pulled from https://github.com/celeronpm/YappySDK at commit 07f41007613b98ddc8765984f6e7189e30a63a75
23 lines
625 B
Java
23 lines
625 B
Java
package com.mariussoft.endlessjabber.sdk;
|
|
|
|
import android.content.Context;
|
|
import android.content.Intent;
|
|
|
|
public class EndlessJabberReceiver extends WakefulBroadcastReceiver {
|
|
|
|
public static final String EndlessJabber_INTENT = "com.mariussoft.endlessjabber.action.extend";
|
|
|
|
@Override
|
|
public void onReceive(Context context, Intent intent) {
|
|
|
|
if (intent.getAction().equals(EndlessJabber_INTENT)) {
|
|
|
|
// This is the Intent to deliver to our service.
|
|
Intent service = new Intent(context, EndlessJabberWakefulService.class);
|
|
service.putExtras(intent.getExtras());
|
|
|
|
startWakefulService(context, service);
|
|
}
|
|
}
|
|
}
|