title: Android SensorManager registerListener - not possible to set custom interval of sensor events
body: <p>I wanted to set an individual interval of sensor events beside: </p>
  
  <p>the given delays: "SENSOR_DELAY_NORMAL, SENSOR_DELAY_U, SENSOR_DELAY_GAME, ENSOR_DELAY_FASTEST".</p>
  
  <p>But non of the "registerListener" methodes seems to support an individual value: <img src="https://i.stack.imgur.com/9SZ7V.png" alt="every methode need &quot;rateUS&quot;">
  Looking into the implementation of the SensorManager class shows: </p>
  
  <pre><code>public boolean registerListener(SensorEventListener listener, Sensor sensor, int rateUs,
          int maxBatchReportLatencyUs) {
          int delay = getDelay(rateUs);
          return registerListenerImpl(listener, sensor, delay, null,maxBatchReportLatencyUs, 0);
      }
  
  
      private static int getDelay(int rate) {
          int delay = -1;
          switch (rate) {
              case SENSOR_DELAY_FASTEST:
                  delay = 0;
                  break;
              case SENSOR_DELAY_GAME:
                  delay = 20000;
                  break;
              case SENSOR_DELAY_UI:
                  delay = 66667;
                  break;
              case SENSOR_DELAY_NORMAL:
                  delay = 200000;
                  break;
              default:
                  delay = rate;
                  break;
          }
          return delay;
      }
  </code></pre>
  
  <p>Is there realy no way to set an individual value for the sensor event interval?</p>