How to detect abnormal magnetic field / orientation readings and adjust the orientation sensor (compass reset)?

We are trying to develop an application that uses compass information and faces a similar problem on the Droid Incredible [http://www.youtube.com/watch?v=qSDpHksACRc[[at time-2: 02].

my problem is similar to the link: http://androidforums.com/incredible-support-troubleshooting/73860-compass-calibration.html

** I also tested my application using a nexus and its performance. The only problem is the incredible Droid. **

I don't think re-executing factory reset would be a good idea for users. Ideally, we would like to detect an abnormal magnetic field and ask the user to reset just a compass.

Can you suggest how we can detect an abnormal magnetic field through the code and call the compass reset?

thank

+3
source share

Source: https://habr.com/ru/post/1771676/


All Articles