List of usage examples for android.hardware SensorEventListener interface-usage
From source file com.google.android.apps.santatracker.doodles.tilt.SwimmingFragment.java
/** * The main fragment for the swimming game. */ public class SwimmingFragment extends GameFragment implements SensorEventListener, EventBusListener { private static final String TAG = SwimmingFragment.class.getSimpleName(); public static final String CURRENT_LEVEL_KEY = "CURRENT_LEVEL";
From source file br.com.rescue_bots_android.bluetooth.MainActivity.java
public class MainActivity extends Activity implements GPSTrackerInterface, SensorEventListener { private static final String TAG = "BlueTest5-MainActivity"; private int mMaxChars = 50000;//Default private UUID mDeviceUUID; private BluetoothSocket mBTSocket;
From source file uk.org.rivernile.edinburghbustracker.android.fragments.general.BusStopDetailsFragment.java
/**
* This Fragment shows details for a bus stop. The bus stop code is passed in
* as an argument to this Fragment. A Map is shown at the top of the Fragment
* if the Google Play Services are available, otherwise it is removed.
*
* @author Niall Scott
From source file com.android.camera2.its.ItsService.java
public class ItsService extends Service implements SensorEventListener { public static final String TAG = ItsService.class.getSimpleName(); // Timeouts, in seconds. public static final int TIMEOUT_CALLBACK = 3; public static final int TIMEOUT_3A = 10;
From source file hr.abunicic.angular.CameraActivity.java
/**
* Created by Antonio Buni?i on 03/03/16.
* Angler's main Activity.
* Contains methods that initialize the camera, its preview and responsiveness to touch,
* methods that set up all custom views, populate the drawer with data from the database etc.
* Processing of camera preview frames, detection and recognition of geometric shapes are also started from this Activity.
From source file com.vonglasow.michael.satstat.ui.MainActivity.java
public class MainActivity extends AppCompatActivity implements GpsStatus.Listener, LocationListener, OnSharedPreferenceChangeListener, SensorEventListener { private static final String TAG = MainActivity.class.getSimpleName(); /** * The {@link android.support.v4.view.PagerAdapter} that will provide
From source file co.taqat.call.CallActivity.java
/** * @author Sylvain Berfini */ public class CallActivity extends LinphoneGenericActivity implements OnClickListener, SensorEventListener, ActivityCompat.OnRequestPermissionsResultCallback { private final static int SECONDS_BEFORE_HIDING_CONTROLS = 4000;
From source file com.coincide.alphafitness.ui.Fragment_Main.java
public class Fragment_Main extends Fragment implements SensorEventListener, LocationListener { // private TextView stepsView, totalView, averageView; private TextView totalView; // private PieModel sliceGoal, sliceCurrent;
From source file org.telegram.messenger.voip.VoIPService.java
public class VoIPService extends Service implements VoIPController.ConnectionStateListener, SensorEventListener, AudioManager.OnAudioFocusChangeListener, NotificationCenter.NotificationCenterDelegate { private static final int ID_ONGOING_CALL_NOTIFICATION = 201; private static final int ID_INCOMING_CALL_NOTIFICATION = 202;
From source file com.ferdi2005.secondgram.voip.VoIPService.java
public class VoIPService extends Service implements VoIPController.ConnectionStateListener, SensorEventListener, AudioManager.OnAudioFocusChangeListener, NotificationCenter.NotificationCenterDelegate { private static final int ID_ONGOING_CALL_NOTIFICATION = 201; private static final int ID_INCOMING_CALL_NOTIFICATION = 202;