| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
| Name | Name | Last commit date | ||
|---|---|---|---|---|
An Android library that provides Continuous Sensing functionality to your applications. For more information, please refer to the project website.
The following sensor modules are currently supported in SensingKit-Android, (listed in SKSensorModuleType enum):
./gradlew build
Create an app/libs directory inside your project and copy the generated SensingKitLib/build/outputs/aar/SensingKitLib-release.aar (or the equivalent debug) file there.
Edit your app/build.gradle file and add a flatDir entry as shown bellow:
repositories {
mavenCentral()
flatDir {
dirs 'libs'
}
}
dependencies {
compile fileTree(dir: 'libs', include: ['*.jar'])
compile 'org.sensingkit:SensingKitLib-release@aar'
compile 'com.android.support:appcompat-v7:22.2.1’
compile 'com.google.android.gms:play-services-location:7.5.0'
}
import org.sensingkit.sensingkitlib.SensingKitLib;
SensingKitLibInterface mSensingKitLib = SensingKitLib.getSensingKitLib(this);mSensingKitLib.registerSensorModule(SKSensorModuleType.LIGHT);mSensingKitLib.subscribeSensorDataListener(SKSensorModuleType.LIGHT, new SKSensorDataListener() {
@Override
public void onDataReceived(final SKSensorModuleType moduleType, final SKSensorData sensorData) {
System.out.println(sensorData.getDataInCSV()); // Print data in CSV format
}
});SKLightData lightData = (SKLightData)sensorData;mSensingKitLib.startContinuousSensingWithSensor(SKSensorModuleType.LIGHT);
mSensingKitLib.stopContinuousSensingWithSensor(SKSensorModuleType.LIGHT);For a complete description of our API, please refer to the project website.
Copyright (c) 2014. Queen Mary University of London Kleomenis Katevas, k.katevas@qmul.ac.uk. This file is part of SensingKit-Android library. For more information, please visit http://www.sensingkit.org. SensingKit-Android is free software: you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version. SensingKit-Android is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more details. You should have received a copy of the GNU Lesser General Public License along with SensingKit-Android. If not, see <http://www.gnu.org/licenses/>.
This library is available under the GNU Lesser General Public License 3.0, allowing to use the library in your applications.
If you want to help with the open source project, contact hello@sensingkit.org.
| Back | FazBrowse Home | New Git URL |