I'm writing an app that uses the proximity sensor, but
registerListener keeps returning false whenever I try to register to
the sensor. getDefaultSensor returns null, getSensorList returns an
empty list, but the sensor works fine during calls and according to
the log, SensorManager actually finds the sensor:

08-18 18:14:38.276  2077  2077 D SensorManager: found sensor: KXTF9 3-
axis Accelerometer, handle=0
08-18 18:14:38.276  2077  2077 D SensorManager: found sensor: AK8973 3-
axis Magnetic field sensor, handle=1
08-18 18:14:38.284  2077  2077 D SensorManager: found sensor: AK8973
Temperature sensor, handle=3
08-18 18:14:38.284  2077  2077 D SensorManager: found sensor: SFH7743
Proximity sensor, handle=4
08-18 18:14:38.284  2077  2077 D SensorManager: found sensor:
Orientation sensor, handle=2
08-18 18:14:38.284  2077  2077 D SensorManager: found sensor: Ambient
Light sensor, handle=5

I had my phone replaced due to a dead pixel and the app ran fine on
the old one, so am I missing something simple or is this a hardware
issue?

-- 
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