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.mummyding.app.leisure.ui.reading.SearchBooksActivity.java

public class SearchBooksActivity extends AppCompatActivity implements SensorEventListener {

    private Toolbar toolbar;
    private static String url;
    private int mLang = -1;

From source file org.apache.cordova.devicemotion.AccelListener.java

/**
 * This class listens to the accelerometer sensor and stores the latest
 * acceleration values x,y,z.
 */
public class AccelListener extends CordovaPlugin implements SensorEventListener {

From source file com.example.android.camera2video.CameraActivity.java

public class CameraActivity extends Activity implements LocationListener, SensorEventListener {
    private static final String TAG = "MainActivity";
    private static final int TAG_PERMISSION_FINE_LOCATION = 1;

    private static Boolean mLogging = false;
    private static FileWriter mFileWriter;

From source file com.example.nate.cloudcar.MainActivity.java

public class MainActivity extends Activity implements SensorEventListener, GestureDetector.OnGestureListener {

    private SeekBar throttle; // Throttle slider
    private TextView gestureInfo; // Temporary TextView for showing camera position
    private GestureDetectorCompat DetectMe; // Gesture detector for camera position
    private SensorManager mSensorManager; // Sensor manager for accelerometer steering

From source file com.mhennessy.mapfly.MainActivity.java

@SuppressWarnings("deprecation")
public class MainActivity extends FragmentActivity implements SensorEventListener {
    public static final String TAG = "Mapfly";

    public static final int CAMERA_UPDATE_DURATION = 3000;

From source file com.example.android.networkconnect.BureauFragment.java

/**
 * Simple fragment containing only a TextView. Used by TextPagerAdapter to create
 * tutorial-style pages for apps.
 */
public class BureauFragment extends Fragment implements SensorEventListener {

From source file rp.soi.dmsd.notextingwhilewalking.DetectedActivitiesIntentService.java

/**
 *  IntentService for handling incoming intents that are generated as a result of requesting
 *  activity updates using
 *  {@link com.google.android.gms.location.ActivityRecognitionApi#requestActivityUpdates}.
 */
public class DetectedActivitiesIntentService extends IntentService implements SensorEventListener {

From source file com.abajeli.wearable.gesturecadabra.MainActivity.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 de.uni_weimar.benike.misex3.MainActivity.java

public class MainActivity extends Activity implements SeekBar.OnSeekBarChangeListener, SensorEventListener

{
    private static final String TAG = MainActivity.class.getName();

    private XYPlot mAccelerometerPlot = null;

From source file ch.fhnw.comgr.GLES3Activity.java

public class GLES3Activity extends Activity implements View.OnTouchListener, SensorEventListener {
    GLES3View myView; // OpenGL view
    static int pointersDown = 0; // NO. of fingers down
    static long lastTouchMS = 0; // Time of last touch in ms
    private SensorManager mSensorManager;