6
6
import android.content.SharedPreferences;
9
12
public class BootReceiver extends BroadcastReceiver {
10
13
private static final String TAG = "UbuntuBootReceiver";
13
16
public void onReceive(Context context, Intent intent) {
14
17
// check if there is any Ubuntu update pending
16
19
if (sp.getBoolean(UbuntuInstallService.PREF_KEY_UBUNTU_INSTALLED, false)) {
17
20
// register alarm for periodical update checks
18
21
Log.d(TAG, "Setting up alarm for update checks");