use TYPE_ROTATION_VECTOR for compass rotation
Opened this issue · 1 comments
ruleant commented
Suggestion by @Sasja
See example : https://gitlab.com/sasja/FestivalRadar/-/blob/master/app/src/main/java/com/pollytronics/clique/CliqueActivity_Main.java#L65
mRotation = mSensorManager.getDefaultSensor(Sensor.TYPE_ROTATION_VECTOR); // might return null!