An example Android sensing application together with some feature computation code.
- Make sure you have the Android SDK installed, and particularly API level 19 and the newest build tools. If you haven't, get Android Studio (which includes the SDK) or just the Android SDK.
- Get the source with
git clone git@github.com:ubi-cs-au-dk/hello-sensing.git. - Change to the new directory.
- To install the Android app: Run
./gradlew :hello-sensing-android:inDeFlDeon Mac/Linux, orgradlew.bat :hello-sensing-android:inDeFlDeon Windows. You might need to add the path to your Android SDK in alocal.propertiesfile, but you'll get notified of that as an error. See below. - To test the feature computation code: Run
./gradlew :hello-sensing-ml:inApon Mac/Linux, then./hello-sensing-ml/build/install/hello-sensing-ml/bin/hello-sensing-ml <example-data/AccelerometerEvent.csv >example-data/AccelerometerFeatures.csv. It should be similar on Windows.
You can then load the AccelerometerFeatures.csv file into Weka. Note that you should add your own class labels to each instance, probably by changing the code in the dk.au.cs.ubi.hellosensing.FeatureComputer.java in hello-sensing-ml.
The file looks like this on my machine (Mac OS X):
sdk.dir=/Applications/Android Studio.app/sdk
For questions and comments, please post on the webboard: https://services.brics.dk/java/courseadmin/CAC13/webboard/forum?forum=702 . If you believe you've found a bug or want a certain feature, feel free to open an issue here on GitHub: https://github.com/ubi-cs-au-dk/hello-sensing/issues .
OR: You could fork the project, fix the problem and/or add the feature yourself, and make a pull request if your change is usable by others. :)
No.