Yeah....I realized this right after I sent out this post....here is
what I did:

mSensorManager.registerListener(this,
                        
mSensorManager.getDefaultSensor(Sensor.TYPE_ORIENTATION),
                        SensorManager.SENSOR_DELAY_FASTEST);
        mSensorManager.registerListener(this,
                        
mSensorManager.getDefaultSensor(Sensor.TYPE_ACCELEROMETER),
                        SensorManager.SENSOR_DELAY_FASTEST);
        mSensorManager.registerListener(this,
                        
mSensorManager.getDefaultSensor(Sensor.TYPE_MAGNETIC_FIELD),
                        SensorManager.SENSOR_DELAY_FASTEST);

...>_<....

On Oct 10, 11:09 pm, Lance Nanek <[email protected]> wrote:
> Why not just call the new method multiple times, once for each sensor
> you want to listen to, keeping the other arguments the same?
>
> On Oct 10, 7:42 am, DD <[email protected]> wrote:
>
>
>
> > Hi, A simple question: How do I register for multiple sensors? I just
> > switched from
> > registerListener(SensorListener listener, int sensors, int rate) ,
> > which is deprecated, to
> > registerListener(SensorEventListener listener, Sensor sensor, int
> > rate) . Previously, I could use " | " to indicate multiple sensors,
> > but now " | " is undefined.... so how?? Thanks a lot!- Hide quoted text -
>
> - Show quoted text -
--~--~---------~--~----~------------~-------~--~----~
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