I started fooling around with the sensors on my HTC Magic and I noticed the same. The sensors you mentioned are the only ones I can see while the phone specs mention a light sensor as well!
Would be great if somebody could shed some "light" on this issue ;) Thanks! On 13 feb, 17:09, mileoresko <[email protected]> wrote: > I used the ddms tool, and I am not sure what the ProximitySensorapp > uses. > As far as I can see it reads something from a file, then does some > character decoding and stuff like that, so I don't think it uses the > SensorManger API at all. > > Nonetheless, I would like to use the SensorManager API to fetch data > from theLightSensor. If that is not possible, I would like to know > why it isn't. > If there is an alternative way to access thissensor'sreadings, I > would appreciate if someone could share it with me. > > Thanks > > On Feb 13, 5:02 pm, Simon <[email protected]> wrote: > > > > > ell that may be your problem.. what makes you think the Proximity > >sensorapp you downloaded uses theLightsensor? > > > On Feb 12, 6:07 am, mileoresko <[email protected]> wrote: > > > > Hi Simon, > > > > sensorManager.getDefaultSensor(Sensor.TYPE_LIGHT) returns: null > > > > On Feb 12, 2:12 am, Simon <[email protected]> wrote: > > > > > What is the result of calling > > > > sensorManager.getDefaultSensor(Sensor.TYPE_LIGHT) ? > > > > > -- Simon -- 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 To unsubscribe from this group, send email to android-developers+unsubscribegooglegroups.com or reply to this email with the words "REMOVE ME" as the subject.

