[android-porting] Increase the Sampling Rate of Accelerometer

2010-11-19 Thread Mehmet Yildirim
Hi all, My current application uses SensorManager of Java API to get accelerometer data at a sampling rate of 5Hz. However I need to increase that rate. Is it possible for me to customize sensor library which android uses to increase this amount? Or dou you have any more suggestions? Regards --

Re: [android-porting] Increase the Sampling Rate of Accelerometer

2010-11-21 Thread Deva R
each application can create a sensor listener and configure the frequency ( SENSOR_DELAY_UI,SENSOR_DELAY_NORMAL,SENSOR_DELAY_GAME,SENSOR_DELAY_FASTEST) you can refer how froyo videoplayer app uses this http://git.omapzoom.org/?p=platform/packages/apps/Gallery3D.git;a=blob;f=src/com/cooliris/media/R