title: "Custom" sensor event rates don't seem to work with SensorManager.registerListener(SensorEventListener listener, Sensor sensor, int rate)
body: <h1>UPDATED:</h1>
  <p>I was able to solve the specific problem I was having by introducing a class-scope static counter and just ignoring ever x number of events.  But I'd still like to know what I'm doing wrong re: registering the listener with a hint in microseconds instead of using one of the four given constants.</p>
  <hr />
  <p>An Activity in my app is engaging the sensors to obtain the orientation of the device, determine the roll, and utilize it.</p>
  <p>I am using</p>
  <p><code>SensorManager.registerListener(SensorEventListener listener, Sensor sensor, int rate)</code></p>
  <p>to register my sensors.  From the <a href="http://developer.android.com/reference/android/hardware/SensorManager.html" rel="noreferrer">Android Documentation for this method:</a></p>
  <blockquote>
  <p><strong>Parameters</strong></p>
  <p>[...]</p>
  <p><em>rate</em></p>
  <p>The rate sensor events are delivered at. This is only a hint to the system. Events may be received faster or slower than the specified rate. Usually events are received faster. The value must be one of SENSOR_DELAY_NORMAL, SENSOR_DELAY_UI, SENSOR_DELAY_GAME, or SENSOR_DELAY_FASTEST or, the desired delay between events in microsecond.</p>
  </blockquote>
  <p>If I use one of the 4 predefined constants then the app works fine; however these constants all provide rate hints that are too fast for my needs. I have to send out a UDP packet containing some information with every event change, and the receiving end seems to be getting completely inundated with messages using any of the predefined rates.  Using an integer number like 30000 (since the API specifies quantities in microseconds) causes the app to stop reporting sensor events all together.</p>
  <p>What am I missing that is preventing me from using my own event rate hints?</p>