Something went wrong on our end
-
Peter Joseph De Jonckheere CESM2014 authored
Update to design which means services are used instead of standard classes. This also means context can be obtained easily in these classes, however further issues with this solution are still to be resolved, mainly in the stimulus and stimulus strategy areas of the code.
Peter Joseph De Jonckheere CESM2014 authoredUpdate to design which means services are used instead of standard classes. This also means context can be obtained easily in these classes, however further issues with this solution are still to be resolved, mainly in the stimulus and stimulus strategy areas of the code.
LockScreenActivity.java 556 B
package com.example.stimulusStrategy;
import android.app.Service;
import android.content.Intent;
import android.os.IBinder;
import android.support.annotation.Nullable;
import com.example.stimulus.Stimulus;
import java.util.Observable;
import java.util.Observer;
/**
* Created by pharmacy on 09/01/2018.
*/
public class LockScreenActivity extends Service implements StimulusStrategy {
public void monitor() {
//Monitor a thing
}
@Nullable
@Override
public IBinder onBind(Intent intent) {
return null;
}
}