I'm struggling to find the root cause of a problem that occurs apparently randomly in my application. I have a listener registered for SENSOR.TYPE_ORIENTATION in my service and on Screen OFF broadcast I unregister the listener, and on Screen ON a register it again. From time to time, after phone reboot, or maybe unplug, while the most of the time the phone is in stand by I get a high sensor usage in phone information (along with high battery use associated with my app...) In logcat I find lines like this just before Screen OFF :
01-26 18:02:52.891 E/SensorManager(13487): unregisterListener: alex.munteanu.SimpleService$2@48790020 MS-3C Orientation Sensor These are some kind of errors that shows that the Listener could not be unregistered ? If yes, why and what can I do ? Thanks. -- 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

