Take the 2-minute tour ×
Android Enthusiasts Stack Exchange is a question and answer site for enthusiasts and power users of the Android operating system. It's 100% free, no registration required.

I recently installed a Compass app on my phone (it's a HTC Wildfire S if it matters) and I'm curious as how it works.

Found some answers online that the phone's hardware has a digital compass in it, is that it? or is it just a smart use of other sensors?

share|improve this question

2 Answers 2

up vote 5 down vote accepted

Yes, it has a magnetic sensor / digital compass.

share|improve this answer
    
Thanks Matthew. Found it in the specs: gsmarena.com/htc_wildfire_s-3777.php. –  user8932748 Dec 10 '11 at 18:43

Most Android Devices have a Geomagnetic Field Sensor built in. This sensor provides raw field strength data (in μT) for each of the three coordinate axes. You can also use theese values to program things like Metal Detectors.

I programmed one once, if you're interrested in source code let me know.

share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.