File tree Expand file tree Collapse file tree 3 files changed +10
-1
lines changed
java/be/hcpl/android/sensors/service Expand file tree Collapse file tree 3 files changed +10
-1
lines changed Original file line number Diff line number Diff line change @@ -60,7 +60,8 @@ And the manifest needs to contain:
60
60
61
61
* complete sensor listing and data visualisation
62
62
* add grahps for data view
63
- * implement the wake device on wave or other use case
63
+ * communicate sensor readings from service to configuration fragment
64
+ * add check for threshold values, should go beyond threshold before triggering again
64
65
65
66
## Version History
66
67
Original file line number Diff line number Diff line change @@ -128,6 +128,12 @@ public void onSensorChanged(SensorEvent event) {
128
128
// we need to enable the screen
129
129
if (sensorValue < mThresholdMin || sensorValue > mThresholdMax ) {
130
130
131
+ // and a check in between that there should have been a non triggering value before
132
+ // we can mark a given value as trigger. This is to overcome unneeded wakeups during
133
+ // night for instance where the sensor readings for a light sensor would always be below
134
+ // the threshold needed for day time use.
135
+
136
+
131
137
// TODO we could even make the actions configurable...
132
138
133
139
// wake screen here
Original file line number Diff line number Diff line change 25
25
android : layout_below =" @+id/btnStart"
26
26
android : text =" @string/stop" />
27
27
28
+ <!-- TODO communicate current sensor value from service to activity using handler -->
29
+
28
30
<!-- some configurable options -->
29
31
30
32
<TextView
You can’t perform that action at this time.
0 commit comments