How can i replace type_orientation (is deprecated) for android 4.0.3?
Here’s a link to a blog with a solution. Essentially, you stop using the Orientation Sensor and use the Magnetic Field Sensor and Accelerometer Sensor(s) in tandem to get equivalent functionality. It’s more work but it does allow you to continue to use a callback to handle orientation changes. EDIT: Since the original site is … Read more