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

Slight changes

parent b04bd12d
No related branches found
No related tags found
No related merge requests found
...@@ -168,4 +168,9 @@ public class SedentaryStimulus extends BroadcastReceiver implements Stimulus { ...@@ -168,4 +168,9 @@ public class SedentaryStimulus extends BroadcastReceiver implements Stimulus {
return true; return true;
} }
} }
private boolean checkContext(SharedPreferences shared, Context context){
//Use weather information etc here to determine if notification should be sent.
return true;
}
} }
...@@ -255,6 +255,7 @@ public class Accelerometer extends Service implements StimulusStrategy, SensorEv ...@@ -255,6 +255,7 @@ public class Accelerometer extends Service implements StimulusStrategy, SensorEv
editor.putLong("",Double.doubleToLongBits(longitude)); editor.putLong("",Double.doubleToLongBits(longitude));
//editor.putString("", ) place names //editor.putString("", ) place names
//editor.putInt("",) weather so temperature //editor.putInt("",) weather so temperature
editor.commit();
}catch(SecurityException e){ }catch(SecurityException e){
Intent i = new Intent(this, RequestPermission.class); Intent i = new Intent(this, RequestPermission.class);
startActivity(i); startActivity(i);
......
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