Ejemplo n.º 1
0
  @Override
  protected void onPause() {
    // TODO Auto-generated method stub
    super.onPause();

    // mSensorManager.unregisterListener(this, accelerometer);
    // mSensorManager.unregisterListener(this, magnetometer);
    // mSensorManager.unregisterListener(this, gyrometer);
    // mSensorManager.unregisterListener(this, gravitymeter);
  }
Ejemplo n.º 2
0
  @Override
  protected void onResume() {
    // TODO Auto-generated method stub
    super.onResume();

    // mSensorManager.registerListener(this, accelerometer, SensorManager.SENSOR_DELAY_GAME);
    // //SENSOR_DELAY_GAME
    // mSensorManager.registerListener(this, magnetometer, SensorManager.SENSOR_DELAY_GAME);
    // mSensorManager.registerListener(this, gyrometer, SensorManager.SENSOR_DELAY_GAME);
    // mSensorManager.registerListener(this, gravitymeter, SensorManager.SENSOR_DELAY_GAME);
  }
Ejemplo n.º 3
0
  @Override
  protected void onCreate(Bundle savedInstanceState) {
    // TODO Auto-generated method stub
    super.onCreate(savedInstanceState);

    // mSensorManager = (SensorManager)getSystemService(SENSOR_SERVICE);
    // accelerometer = mSensorManager.getDefaultSensor(Sensor.TYPE_ACCELEROMETER);
    // magnetometer = mSensorManager.getDefaultSensor(Sensor.TYPE_MAGNETIC_FIELD);
    // gyrometer = mSensorManager.getDefaultSensor(Sensor.TYPE_GYROSCOPE);
    // gravitymeter = mSensorManager.getDefaultSensor(Sensor.TYPE_GRAVITY);

  }
Ejemplo n.º 4
0
 @Override
 public void onConfigurationChanged(Configuration newConfig) {
   // TODO Auto-generated method stub
   super.onConfigurationChanged(newConfig);
 }