How to unregister SensorEventListener from SensorManaget?
<p>I have been developing the application which uses SensorManager through SensorEventListener. But there is a one problem: when application starts it should remove my listener from SensorManager and create a new Listener, but SensorManager has only 2 methods - registerListener and unregisterListener, but when I execute the application I can't get a reference for last listener and unregister it. Please, tell me any way in order to I can fix it. Thank you. </p>
