Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
S
SedentaryBehaviourApplication
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Deploy
Releases
Model registry
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Peter Joseph De Jonckheere CESM2014
SedentaryBehaviourApplication
Commits
571b47c7
Commit
571b47c7
authored
7 years ago
by
Peter Joseph De Jonckheere CESM2014
Browse files
Options
Downloads
Patches
Plain Diff
Small further additions
parent
722dd818
No related branches found
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
src/main/java/com/example/stimulusStrategy/Accelerometer.java
+0
-1
0 additions, 1 deletion
...main/java/com/example/stimulusStrategy/Accelerometer.java
src/main/java/com/example/stimulusStrategy/SigMotionDetect.java
+3
-0
3 additions, 0 deletions
...in/java/com/example/stimulusStrategy/SigMotionDetect.java
with
3 additions
and
1 deletion
src/main/java/com/example/stimulusStrategy/Accelerometer.java
+
0
−
1
View file @
571b47c7
...
...
@@ -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
;
...
...
This diff is collapsed.
Click to expand it.
src/main/java/com/example/stimulusStrategy/SigMotionDetect.java
+
3
−
0
View file @
571b47c7
...
...
@@ -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");
}
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment