Accelerometer and Android Studio
Version 1.5.0 adds new features to the Accelerometer class, LoggingTrigger enum, and updates to the manifest file for Android Studio usage.
This release also is the first release to support Android Studio. For instructions on how to add the MetaWear dependency to your app's build.gradle file, check out the first section of the Android Guide on our website at http://docs.mbientlab.com/?page_id=40#cat-26
Features
- Adds sleep mode support, power mode support, and low pass filtering for tap detection to the Accelerometer class
- Added logging support for board orientation
- Fixed manifest merge errors in Android Studio and updated manifest with required permissions and features
Code Changes
Accelerometer
- Added enableAutoSleepMode and disableAutoSleepMode
- Added setPowerMode
- Added BOTH entry to TapType enum
- Using both will enable single and double tap detection
- Added withLowPassFilter to the TapConfig interface
LoggingTrigger
- Added ACCELEROMETER_ORIENTATION entry to the enum
- This entry is for logging the board's orientation
BytesInterpreter
- Added byteToOrientation method
AndroidManifest.xml
- Added Bluetooth permission and Bluetooth Le required feature
- Removed activity tag