title: Android how to set sensor delay?
body: <p>For my project i've created a class that uses the Sensors of the users device to detect north. I only need to get an update every second, and hopefully by making the delay longer <strong>save some battery</strong>, but I cant get the delay working. What i have:</p>
  
  <pre><code>mAcceleroSensor = mSensorManagerAccelero.getDefaultSensor(Sensor.TYPE_MAGNETIC_FIELD);
  mMagneticSensor = mSensorManagerMagnetic.getDefaultSensor(Sensor.TYPE_ACCELEROMETER);
  // Tried to set normal values like SensorManager.SENSOR_DELAY_NORMAL
  // and numbers like 100 - 100.000. 1.0000.0000 
  // (without the dots only here to make it readable here).
  mSensorManagerAccelero.registerListener(this, mAcceleroSensor, 50000000);
  mSensorManagerMagnetic.registerListener(this, mMagneticSensor, 50000000);
  </code></pre>
  
  <p>Everything works except the delay it almost looks like its updated live. I have used code similair to <a href="https://stackoverflow.com/a/23060896/1667868">https://stackoverflow.com/a/23060896/1667868</a> with some minour changes.</p>
  
  <p><strong>Note: the minimum api version I use is 14</strong></p>