/ocean-services-motion

Motion SDK allows you to collect motion information from the device and use it in your applications. You can collect from the device sensors raw data related to pedometer or activity recognition or the motions associated with answering the phone.

Primary LanguageJava

Motion SDK

Latest Stable Version

Motion SDK allows you to collect motion information from the device and use it in your applications. You can collect from the device sensors raw data related to pedometer or activity recognition or the motions associated with answering the phone.

Motion

You can use the Motion SDK to:

  • Detecting call motion
  • Using pedometer data
  • Recognizing activities

Detecting Call Motion

Motion SDK recognizes the action when the user first watches the device and then subsequently brings the device up to the ear. You can use this motion to answer an incoming call. If the user is reading a message, you can use the motion to call the number from which the message was sent.

Motion

Restrictions

Motion SDK has the following restrictions:

  • Devices with Android 4.3 Jelly Bean (API level 18) or higher support Motion.
  • Devices with Android 4.4KitKat (API level 19) or higher support activity recognition.
  • Devices with a proximity, acceleration, and a gyro sensor support call motion detection.
  • Devices with an acceleration and a pressure sensor support pedometer data usage. The device cannot recognize the number of up/down steps and the status of up/down steps without the pressure sensor.

Download

Add into gradle project level

allprojects {
  repositories {
    ...
    maven { url "https://jitpack.io" }
  }
}

Add into app project level

dependecies{
    compile 'com.github.oceanbrasil:ocean-services-motion:2.2.1'
}

LICENSE

Copyright © 2010 - 2017 SAMSUNG All rights reserved.

Portions of this page are reproduced from work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License.