You might want to look at this for the accelerometer sensor:

public boolean registerListener (SensorEventListener listener, Sensor 
sensor, int rate)
Since: API Level 3
Registers a SensorEventListener for the given sensor.
Parameters
listener
A SensorEventListener object.
sensor
The Sensor to register to.
rate
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.
Returns
true if the sensor is supported and successfully enabled.


You can use SENSOR_DELAY_FASTEST.

On Saturday, July 28, 2012 4:19:14 PM UTC-5, Prem wrote:
>
> I just want to change the orientation sensor polling period in android. 
> The current polling period is 40ms.

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

Reply via email to