In SensorChanged event, event.values has value[0],value[1] and value[2] in Android.
value[0] is equivalent to e.SensorReading.MagneticHeading in Windows
Phone.
Like that i want to know the equivalent values of value[1] and value[2]. Can anyone please define this.
On Android, according to Sensor.TYPE_MAGNETIC_FIELD, the
valuearray corresponds to the micro-tesla readings of the magnetometer in the X, Y and Z directions. If you look at the MSDN docs for the CompassReading Structure theMagnetometerReadingwill give you aVector3providing the raw magnetometer readings from the device.One thing to note is that the MSDN docs specifically call out that these are raw readings where as the Android docs don’t specify this. As such you’ll probably get very different readings between the two systems.
MSDN has a good article on How to: Get Data from the Compass Sensor for Windows Phone which would be a good starting point.