Hello. I'm using the magnetic field in my application and sometimes It 
doesn´t work properly because It doesn´t get enough Teslas from the 
magnetic field. So I am doing this to detect the how many teslas the device 
is detecting, but I don´t know how many it needs:


SensorManager mSensorManager = (SensorManager) getSystemService(
SENSOR_SERVICE);

Sensor magField = mSensorManager.getDefaultSensor(Sensor.TYPE_MAGNETIC_FIELD
);

Float power = magField.getPower();


Does anybody know another way to know when the device can detect properly 
where is the north?


Thank you

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

Reply via email to