I'm not sure what kind of sensors you need to  get information from, but
there's an example of monitoring device orientation and rotation in  

frameworks/base/media/java/android/media/AudioService.java.
Search for mMonitorOrientation and mMonitorRotation.
On Wednesday, March 26, 2014 8:07:09 PM UTC-7, Uday Gupta wrote:
>
> Hi,
>
> I am working on some audio algorithm in audio HAL. This audio algorithm 
> needs to get the information from the sensors. What would be the best way 
> to get this information?
>
> 1. Directly call the kernel sensor interface.
> 2. Use the sensor service.
>
> Thanks
>

-- 
-- 
unsubscribe: [email protected]
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 [email protected].
For more options, visit https://groups.google.com/d/optout.

Reply via email to