17 lines
507 B
Java
17 lines
507 B
Java
package at.sprinternet.mvnoroaming;
|
|
|
|
import android.content.BroadcastReceiver;
|
|
import android.content.Context;
|
|
import android.content.Intent;
|
|
|
|
public class RebootServiceReceiver extends BroadcastReceiver {
|
|
|
|
@Override
|
|
public void onReceive(Context context, Intent intent) {
|
|
if ("android.intent.action.BOOT_COMPLETED".equals(intent.getAction())) {
|
|
Intent serviceIntent = new Intent(context, RebootService.class);
|
|
context.startService(serviceIntent);
|
|
}
|
|
}
|
|
}
|