Skip to content
Snippets Groups Projects
BootLauncher.java 564 B
package com.example.stimulus;

import android.content.BroadcastReceiver;
import android.content.Context;
import android.content.Intent;

import com.example.stimulusStrategy.Accelerometer;

/**
 * Created by pharmacy on 12/02/2018.
 */

public class BootLauncher extends BroadcastReceiver {

    @Override
    public void onReceive(Context context, Intent intent) {
        if (Intent.ACTION_BOOT_COMPLETED.equals(intent.getAction())) {
            Stimulus stimulus = new SedentaryStimulus(context.getApplicationContext(), new Accelerometer());

        }
    }
}