Skip to content
Snippets Groups Projects
Commit 571b47c7 authored by Peter Joseph De Jonckheere CESM2014's avatar Peter Joseph De Jonckheere CESM2014
Browse files

Small further additions

parent 722dd818
No related branches found
No related tags found
No related merge requests found
......@@ -32,7 +32,6 @@ import java.util.Calendar;
public class Accelerometer extends Service implements StimulusStrategy, SensorEventListener {
private SensorManager mSensorManager;
private Sensor accl;
private AlarmManager am;
//private Context context;
private int startId;
......
......@@ -65,6 +65,9 @@ public class SigMotionDetect extends Service implements StimulusStrategy {
private void setUpClock() {
Intent i = new Intent(this, Notification.class);
PendingIntent pi = PendingIntent.getBroadcast(this, R.integer.alarm_rc, i, 0);
// int interval = shared.getInt(getString(R.string.notify_me), R.integer.notify_period_minutes);
//am.set(AlarmManager.ELAPSED_REALTIME_WAKEUP, SystemClock.elapsedRealtime()+(1000*60*interval), pi);
am.set(AlarmManager.ELAPSED_REALTIME, AlarmManager.INTERVAL_HOUR, pi);
// Log.i("myTag", "Alarm SET");
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment