midnightCheck modification

set RandomIsScheduled flag to false
Trigger Random Survey Function Bug Fix

Not updating random survey schedule if App is used more than one day and
never be stopped
add SetStatus(false) in bedTime report Broadcast(ACTION_SCHEDULE_MORNING)
Roll Back last commit

According to Psychological department requirment, we keep the old
design.
Add some log Test function
Merge branch 'master' of https://github.com/RickyShi/BodySensorApp
One Log Item changed
Morning Report Part1
Morning Report Part 2
Log File to Server

1. auto-triggered morning report time
2. time for schedule the morning report and expected triggered time for
morning survey
1) bed report 2) midnight check 3) first run of APP
MainActivity Suspension-Break_Suspesion Conversion Completed
SUSPEND UI
Write Log Event in one File
Change Log File Name/Deal with the sensor file name
SUSPENSION UI PART DONE

suspension check alertDialogs
LOCK the menu drop list when App is in suspension state
SUSPENSION EFFECT

1. STOP ALL RANDOM SURVEY
2. MOVE SOME OPERATION in the SENSOR SERVICE broadcast receiver
Suspension EFFECT2

Add TimerTask to cancel the suspension according to the suspension time.
prevent generating new instance of the MainActivity
interact with server to compute Compliance Score

1. send different post request to server script
1) TriggerSignal thread in SuveyPinCheck Activity
2) CompletedSignal thread in SensorService Activity
2. server script will receive the data and interact with DB
3. Server compute and show score on the website