Figured it out. The example I had used the old API. List<Sensor> sl = sm.getSensorList(Sensor.TYPE_ALL) works as expected.
On Oct 29, 7:13 pm, mh <[email protected]> wrote: > When I call: > > SensorManager sm = (SensorManager) getSystemService > (Context.SENSOR_SERVICE); > List<Sensor> sl = sm.getSensorList(SensorManager.SENSOR_ALL); > > The list count returns 0 in both the emulator running under Eclipse > and on the device. I don't know whether or not the emulator has > sensors but shouldn't the device at least return 1 for the > accelerometer? --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---

