use the accelerometer. as far as i can tell, the accelerometer sensor data 
is not buffered thus latency is minimal

rest device on something soft (i used cigarette rolling filters)

set accelerometer to maximum refresh rate, on my xperia z ultra it is 200 Hz

output pulses (say 1% duty cycle at 1 Hz) at maximum possible amplitude

measure difference in time between request for sound playback and movement 
detected via the accelerometer

some tweaking will be necessary to filter out the noise from the signal

-- 
-- 
unsubscribe: android-porting+unsubscr...@googlegroups.com
website: http://groups.google.com/group/android-porting

--- 
You received this message because you are subscribed to the Google Groups 
"android-porting" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to android-porting+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to