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

Removed debug

parent 618c8fdb
No related branches found
No related tags found
No related merge requests found
......@@ -51,7 +51,6 @@ public class DataAnalysis {
BroadcastReceiver feedback = new BroadcastReceiver() {
@Override
public void onReceive(Context context, Intent intent) {
Log.d("FEEDBACK STIM", "EHH HELP");
SharedPreferences shared =
context.getSharedPreferences(context.getString(R.string.preference_file_key), Context.MODE_PRIVATE);
if ((checkTime(shared, context)) && (shared.getBoolean(context.getString(R.string.notf_switch), true))) {
......
......@@ -93,12 +93,10 @@ public class SedentaryStimulus extends BroadcastReceiver implements Stimulus {
if ((checkTime(shared, context)) && (shared.getBoolean(context.getString(R.string.notf_switch), true))
&& checkAcknowledged(shared, context)
&& checkContext(shared, context)) {
Log.d("SEDSTIM", "SENDING NOTIFICATION");
Intent i = new Intent(context.getApplicationContext(),
com.notificationFramework.notification.SedentaryNotification.class);
context.getApplicationContext().startService(i);
} else{
Log.d("SEDSTIM", "SENDING NOTIFICATION FAILED");
}
if (strategy == null) {
......@@ -163,17 +161,13 @@ public class SedentaryStimulus extends BroadcastReceiver implements Stimulus {
int period = shared.getInt(context.getString(R.string.daily_goal), context.getResources().getInteger(R.integer.daily_goal_minutes));
float ackThreshold = (24/period);
ackThreshold = ackThreshold * threshold;
Log.d("AVGTHRESH", String.valueOf(ackThreshold));
float avgAck = shared.getFloat(context.getString(R.string.avg_ack), 0);
Log.d("AVGACK", String.valueOf(avgAck));
if(avgAck > ackThreshold){
Log.d("SEDSTIM", "I ASSUME");
Intent i = new Intent("FEEDBACKFILTER");
final LocalBroadcastManager lbm = LocalBroadcastManager.getInstance(context.getApplicationContext());
BroadcastReceiver feedback = new BroadcastReceiver() {
@Override
public void onReceive(Context context, Intent intent) {
Log.d("FEEDBACK STIM", "EHH HELP");
SharedPreferences shared =
context.getSharedPreferences(context.getString(R.string.preference_file_key), Context.MODE_PRIVATE);
if ((checkTime(shared, context)) && (shared.getBoolean(context.getString(R.string.notf_switch), true))) {
......
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