Next iteration of the symptom tracker application for Master's Thesis
-
git clone this project
-
git clone the required AWARE plugin(s)
- Activity Recognition: https://github.com/denzilferreira/com.aware.plugin.google.activity_recognition.git
- Activity Recognition: https://github.com/denzilferreira/com.aware.plugin.google.activity_recognition.git
-
Add a new module to this project:
- Open Module Settings, click top left '+' icon, select 'add new Module'
- Select existing Android Studio Project
- browser to module directory (Activity Recognition)
- Go to module app/build.gradle
- change line: apply plugin: 'com.android.application' to: apply plugin: "com.android.library"
- comment out applicationId (libraries cannot have applicationId) ("//applicationId ...")
- change line: apply plugin: 'com.android.application' to: apply plugin: "com.android.library"
- Open Module Settings, click top left '+' icon, select 'add new Module'
-
Include "compile project(':com.aware.plugin.google.activity_recognition')" to main project app/build.gradle if not there already
-
Change com.aware.plugin.google.activity_recognition.Plugin class variable ACTION_AWARE_GOOGLE_ACTIVITY_RECOGNITION to final (public final static ..)
- Since it is used inside a switch statement and needs to be declared final..
- Since it is used inside a switch statement and needs to be declared final..
-
Change the activity recognition dependencies (build.gradle)
- Change aware-core version to same as the app/build.gradle
- include "compile 'com.koushikdutta.ion:ion:2.1.6'" due to aware-core-3.9.8 or higher requirements
- Change aware-core version to same as the app/build.gradle
-
Build project
- Change plugin's buildToolsVersion if required
- Change plugin's buildToolsVersion if required