android SensorEventListener problem

后端 未结 4 533
长情又很酷
长情又很酷 2021-01-07 10:50

I am trying to create an application which reads data from digital compass. I tried to reuse the code from the book Professional Android Application Development but the IDE

4条回答
  •  暖寄归人
    2021-01-07 11:08

    The method is just deprecated, you have to use

    registerListener(SensorEventListener, Sensor, int) 
    

    instead.

提交回复
热议问题