(Share an Android compass positioning Java source code. Author's information: City Ranger, demonstrate the process and final effect of Android compass positioning. Related technical keys: introduce compass images, control the view of compass image rotation, obtain management services, register and revoke listeners, change sensor values, change accuracy, obtain the sensor type triggering event, obtain the view of z rotation, wear rotating animation, animation duration, etc.)