Example usage for android.hardware SensorEventListener interface-usage

List of usage examples for android.hardware SensorEventListener interface-usage

Introduction

In this page you can find the example usage for android.hardware SensorEventListener interface-usage.

Usage

From source file org.jitsi.android.gui.fragment.ProximitySensorFragment.java

/**
 * This fragment when added to parent <tt>Activity</tt> will listen for
 * proximity sensor updates and turn the screen on and off when NEAR/FAR
 * distance is detected.
 *
 * @author Pawel Domas

From source file com.wx.iseeweather.GetPressurePlugin.GetPressure.java

public class GetPressure extends CordovaPlugin implements SensorEventListener {

    /*
       -The idea is to take an odd number of readings, store them into an array, 
       sort the array, and then take the middle of the array. 
       -This is the median result so that an initial 'bad' reading doesn't cause any issues.

From source file com.phonegap.TempListener.java

public class TempListener extends Plugin implements SensorEventListener {

    Sensor mSensor;
    private SensorManager sensorManager;

    /**

From source file com.developer.shade.sensors.SensorService.java

/**
 *   SOUND: Fall Detection For Android Wear
 *
 *   @author: Shaid Khan
 *   Copyright (C) 2015 Shaid Khan.
 *

From source file org.gearvrf.GVRInternalSensorListener.java

/** A listener for a TYPE_ROTATION_VECTOR type sensor. */
class GVRInternalSensorListener implements SensorEventListener {
    public static final Quaternion COORDINATE_QUATERNION = new Quaternion(Math.sqrt(0.5), 0.0f, 0.0f,
            -Math.sqrt(0.5));
    public static final Quaternion OFFSET_QUATERNION = new Quaternion(Math.sqrt(0.5), 0.0f, Math.sqrt(0.5), 0.0f);

From source file org.jitsi.android.gui.call.ProximitySensorFragment.java

/**
 * This fragment when added to parent <tt>VideoCallActivity</tt> will listen for
 * proximity sensor updates and turn the screen on and off when NEAR/FAR
 * distance is detected.
 *
 * @author Pawel Domas

From source file com.example.zoeoeh.ETuner.OpenGLClass.java

/**
 * Created by Zoe Wall on 20/02/2016.
 * Fragement inflated for TuneTab, using an accelerometer, and handlers for switches.
 * Controlls playback for tuning.
 */
public class OpenGLClass extends Fragment implements SensorEventListener {

From source file com.phonegap.CompassListener.java

/**
 * This class listens to the compass sensor and stores the latest heading value.
 */
public class CompassListener extends Plugin implements SensorEventListener {

    public static int STOPPED = 0;

From source file com.artur.softwareproject.BaroService.java

/**
 * Created by Martin Kern on 15.05.2017.
 * This Service gets the data from the barometer.
 */

public class BaroService extends Service implements SensorEventListener {

From source file org.durka.hallmonitor.ViewCoverProximityService.java

public class ViewCoverProximityService extends Service implements SensorEventListener {
    private final String LOG_TAG = "Hall.VCPS";

    private CoreStateManager mStateManager;
    private LocalBroadcastManager mLocalBroadcastManager;