Skip to content

Getting Started

DabenW edited this page Jun 14, 2020 · 13 revisions

AutoCoach is an Android-based mobile application to monitor a driver's driving behavior. AutoCoach uses positive reinforcement methods to raise the awareness of drivers towards habits they might not be aware of.

In order to start working on this code, we use Android Studio. Follow the given steps for setting up the project on your Studio:

  1. Clone or download this Android Project.
git clone https://github.com/kyrie007/auto_coach_android.git
  1. Dependencies?
    All the dependencies are in lib folder, they will be imported to project after first building.

  2. Configurations?
    Android SDK: 29 (Android 10)
    Java version: 1.8 or later


Structure

The main part of this project is composed by MainActivity, SensorDetectService and FeedbackService. It uses the activity and service component in Adnroid development. Activity is the main page of the UI and also the start of a application. Service is the component running at the background to give function and data support.

MainActivity.java:
Sync:
> SensorDetectService.java:
> FeedbackService.java:
Database:
Bean/Event.java:
SVM: this folder contains offline training files for SVM model
libsvm: this is the package files from SVM model project "libsvm"
LDA: this folder contains offline LDA training files
models: this folder contains post-trained LDA model files


MainActivity

Clone this wiki locally