So, I'm stuck on this for about a week ...
I followed this guide: https://code.tutsplus.com/tutorials/android-sdk-augmented-reality-camera-sensor-setup--mobile-7873
And I got images that are dynamically drawn on the canvas, which is then rotated by the rotation matrix that I get from the sensors.
What I'm trying to do is add a listener to the ImageView, which I draw and rotate on the canvas, but I cannot figure out how to do this.
if (lastAccelerometer != null && lastCompass != null) { boolean gotRotation = SensorManager.getRotationMatrix(rotation, identity, lastAccelerometer, lastCompass); if (gotRotation) { float cameraRotation[] = new float[9];
source share