The project is building an android application that uses activity recognition and logging.
The required android application should include a background service that should detect if the user is driving/ and log the date,time,and location of the drive start event and drive stop event.
In order to detect the activity the application should use android activity recognition API described here: [url removed, login to view]
Clicking the application icon in the app drawer should open an activity to display an on/off toggle to start/stop the service.
This activity should also include a textview to display to display a summary to the user about the total amount of time he spent driving, daily, weekly, monthly and annually.
The application should work on android 4.0 and above.
The service should be started at the device boot.
The application should not power on the GPS component of the mobile device.
The log should be internal to the applicatoin and not shared.
Full source code, english variable names and reasonable comments on the code are required.