It seems the code is working. However the acceleration change is not propagated properly on Android 6 it seems (LG Nexus 5 with Android 6.0.2) - I checked on Android 5 and it's fine. When debugging I went down to Engine class and seems that onAccuracyChanged of Activity is not invoked because onSensorChanged is not invoked at all as well!
To my dismay, the demo app downloaded from Google Play is working properly on Android 6. Is there different implementation ?
I compiled andEngine with PhysicsBox2d extension and took code from PhysicsExample.java:
https://github.com/nicolasgramlich/AndEngineExamples/blob/GLES2/src/org/andengine/examples/PhysicsExample.java
It seems the code is working. However the acceleration change is not propagated properly on Android 6 it seems (LG Nexus 5 with Android 6.0.2) - I checked on Android 5 and it's fine. When debugging I went down to Engine class and seems that onAccuracyChanged of Activity is not invoked because onSensorChanged is not invoked at all as well!
To my dismay, the demo app downloaded from Google Play is working properly on Android 6. Is there different implementation ?