Monday, February 8, 2010

[android-developers] No light sensor and/or proximity sensor detected on Hero?

Hi,

I have a HTC Hero here, and when I tried to get the list of available
sensors on the device by calling

((SensorManager)
getSystemService(Context.SENSOR_SERVICE)).getSensorList(Sensor.TYPE_ALL);

I get only the following sensors:

D/SensorManager( 6302): found sensor: BMA150 3-axis Accelerometer,
handle=0
D/SensorManager( 6302): found sensor: AK8973 3-axis Magnetic field
sensor, handle=1
D/SensorManager( 6302): found sensor: AK8973 Orientation sensor,
handle=2
D/SensorManager( 6302): found sensor: AK8973 Temperature sensor,
handle=3

According to the specs, there should be a light and a proximity sensor
on the Hero, and I've seen it in action (the automatic screen
brightness adjustment) - so at least the ambient light sensor is
definitely there.

My question is then, why doesn't the getSensorList return for me the
light and the proximity sensors?


Please help ...

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

0 Comments:

Post a Comment

Subscribe to Post Comments [Atom]

<< Home


Real Estate