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 com.hyung.jin.seo.getup.wear.G3tUpActivity.java

/**
 * The main activity for the Jumping Jack application. This activity registers itself to receive
 * sensor values. Since on wearable devices a full screen activity is very short-lived, we set the
 * FLAG_KEEP_SCREEN_ON to give user adequate time for taking actions but since we don't want to
 * keep screen on for an extended period of time, there is a SCREEN_ON_TIMEOUT_MS that is enforced
 * if no interaction is discovered.

From source file org.y20k.trackbook.TrackerService.java

/**
 * TrackerService class
 */
public class TrackerService extends Service implements TrackbookKeys, SensorEventListener {

    /* Define log tag */

From source file com.stillnojetpacks.huffr.activities.MainActivity.java

public class MainActivity extends AppCompatActivity
        implements SensorEventListener, SoundPool.OnLoadCompleteListener {

    public static final String TAG = "MainActivity";
    public static final int SOUND_FILE_COUNT = 8; // arbitrary MAX of 8

From source file it.flaviomascetti.posture.PostureCheckFragment.java

public class PostureCheckFragment extends Fragment implements SensorEventListener {

    static final int MY_PERMISSION_REQUEST_SDCARD_WRITE = 01;

    private SensorManager sensorManager;
    private Sensor accelerometer;

From source file com.readystatesoftware.android.geras.mqtt.GerasMqttService.java

public class GerasMqttService extends Service implements MqttCallback, SensorEventListener, LocationListener {

    public static final String EXTRA_HOST = "host";
    public static final String EXTRA_API_KEY = "api_key";
    public static final String EXTRA_SENSOR_MONITORS = "sensor_monitors";
    public static final String EXTRA_LOCATION_MONTITOR = "location_monitor";

From source file org.chromium.latency.walt.AccelerometerFragment.java

public class AccelerometerFragment extends Fragment implements View.OnClickListener, SensorEventListener {

    private static final int MAX_TEST_LENGTH_MS = 10000;
    private SimpleLogger logger;
    private WaltDevice waltDevice;
    private TextView logTextView;

From source file com.example.basensortracker.SensorFusionActivity.java

public class SensorFusionActivity extends Activity
        implements SensorEventListener, RadioGroup.OnCheckedChangeListener {

    private SensorManager mSensorManager = null;

    // angular speeds from gyro

From source file edu.cmu.android.restaurant.MapFragment.java

/**
 * This code is adapted by Rui Gao for the restaurant project
 * 
 * @author rgao
 * 
 */

From source file com.wordpress.tonytam.avatar.AvatarWearActivity.java

/**
 * The main activity for the Jumping Jack application. This activity registers itself to receive
 * sensor values. Since on wearable devices a full screen activity is very short-lived, we set the
 * FLAG_KEEP_SCREEN_ON to give user adequate time for taking actions but since we don't want to
 * keep screen on for an extended period of time, there is a SCREEN_ON_TIMEOUT_MS that is enforced
 * if no interaction is discovered.

From source file com.kircherelectronics.accelerationexplorer.activity.NoiseActivity.java

/**
 * A class intended to measure the noise of the sensor in terms
 * root-mean-squared (RMS). Effectively, the average deviation from the mean of
 * the sensor outputs. Multiple smoothing filters are applied simultaneously to
 * the raw sensor output and can be compared via a bar chart.
 *