Skip to content

An example Android sensing application and feature computation code.

License

Notifications You must be signed in to change notification settings

ubi-cs-au-dk/hello-sensing

Repository files navigation

hello-sensing

An example Android sensing application together with some feature computation code.

Prerequisites

  1. 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.

How to use

  1. Get the source with git clone git@github.com:ubi-cs-au-dk/hello-sensing.git.
  2. Change to the new directory.
  3. To install the Android app: Run ./gradlew :hello-sensing-android:inDeFlDe on Mac/Linux, or gradlew.bat :hello-sensing-android:inDeFlDe on Windows. You might need to add the path to your Android SDK in a local.properties file, but you'll get notified of that as an error. See below.
  4. To test the feature computation code: Run ./gradlew :hello-sensing-ml:inAp on 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.

local.properties

The file looks like this on my machine (Mac OS X):

sdk.dir=/Applications/Android Studio.app/sdk

Questions? Comments? (aka HEEEEEEEELP!!!!1111)

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. :)

Does santa exist?

No.

About

An example Android sensing application and feature computation code.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published