Android Open Source - BleSensorTag Android Sensor

From Project

Back to project page BleSensorTag.


The source code is released under:

MIT License

If you think the Android project BleSensorTag listed in this page is inappropriate, such as containing malicious code/tools or violating the copyright, please email info at java2s dot com, thanks.

Java Source Code

package sample.ble.sensortag.fusion.sensors;
/*  w  w w  .  j  a  v a 2s .co m*/
import android.hardware.Sensor;
import sample.ble.sensortag.fusion.sensors.ISensor;

public class AndroidSensor implements ISensor {

    public final Sensor sensor;

    public AndroidSensor(Sensor sensor) {
        this.sensor = sensor;

    public float getMaxRange() {
        return sensor.getMaximumRange();

    public int getType() {
        return sensor.getType();

Java Source Code List