blob: 64887369d9d869b1b29a06f174b906602638bce4 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
|
package com.wireguard.android;
import android.content.BroadcastReceiver;
import android.content.Context;
import android.content.Intent;
public class BootCompletedReceiver extends BroadcastReceiver {
@Override
public void onReceive(Context context, Intent intent) {
if (!intent.getAction().equals(Intent.ACTION_BOOT_COMPLETED))
return;
Intent startServiceIntent = new Intent(context, ProfileService.class);
context.startService(startServiceIntent);
}
}
|