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
The method is just deprecated, you have to use
registerListener(SensorEventListener, Sensor, int)
instead.