List of usage examples for android.hardware SensorEventListener interface-usage
From source file org.awokenwell.proximity.ProximitySensorListener.java
/** * This class listens to the proximity sensor and stores the latest value. */ public class ProximitySensorListener extends CordovaPlugin implements SensorEventListener { public static int STOPPED = 0;
From source file root.gast.playground.sensor.altitude.DetermineAltitudeActivity.java
/** * Displays the current altitude * * @author Adam Stroud <<a href="mailto:adam.stroud@gmail.com">adam.stroud@gmail.com</a>> */ public class DetermineAltitudeActivity extends Activity implements SensorEventListener, LocationListener {
From source file com.grumpysailor.cordova.magnetsensor.MagnetSensor.java
/** * This class listens to the accelerometer sensor and stores the latest * acceleration values x,y,z. */ public class MagnetSensor extends CordovaPlugin implements SensorEventListener {
From source file com.example.android.basicgesturedetect.MainActivity.java
} /** Create a chain of targets that will receive log data */ @Override public void initializeLogging() { // Wraps Android's native log framework.
From source file com.example.yihongxu.weightliftingcounter.MainActivity.java
/**
* The main activity for the Weight Lifting Counter application on wear side. 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.mummyding.app.leisure.ui.reading.ReadingDetailsActivity.java
public class ReadingDetailsActivity extends SwipeBackActivity implements SensorEventListener { public static BookBean bookBean; private ViewPager viewPager; private PagerAdapter adapter; private Toolbar toolbar; private TabLayout tabLayout;
From source file com.acrr.acdisplay.services.activemode.sensors.ProximitySensor.java
/**
* Basing on results of proximity sensor it notifies when
* {@link com.acrr.acdisplay.ui.activities.AcDisplayActivity AcDisplay}
* should be shown.
*
* @author Artem Chepurnoy
From source file com.achep.acdisplay.services.activemode.sensors.ProximitySensor.java
/**
* Basing on results of proximity sensor it notifies when
* {@link com.achep.acdisplay.ui.activities.AcDisplayActivity AcDisplay}
* should be shown.
*
* @author Artem Chepurnoy
From source file com.example.jony.myapp.reader_APP.ui.ReadingDetailsActivity.java
public class ReadingDetailsActivity extends SwipeBackActivity implements SensorEventListener { public static BookBean bookBean; private ViewPager viewPager; private PagerAdapter adapter; private Toolbar toolbar; private TabLayout tabLayout;
From source file edu.uwp.alga.calculator.CalculatorFragment.java
/**
* A simple {@link Fragment} subclass.
* Activities that contain this fragment must implement the
* interface
* to handle interaction events.
* Use the {@link CalculatorFragment#newInstance} factory method to