Inspired by Chris Smith's project this application does classification differently, logs classifications in a local database and maintains an online repository of activities.
Calibration is initiated by clicking the calibration button in preferences (No dialog box)
It recognized weather the phone is in Vertical or Flat position by looking at Z mean. If the Z mean is below Gravity/2
then the calibration is Z mean. Otherwise the calibration is SD for all axis and mean for X and Y.
Take the next sample and based the calibration on that.
Update the database and also update the notification based on the axis/axes that is calibrated.
Give instruction on what to do next (A short note)
Calibration for avocado AC needs to be fixed: