Friday, July 13, 2012

[android-developers] How many Teslas you need to get correct magnetic field data

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 android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscribe@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

0 Comments:

Post a Comment

Subscribe to Post Comments [Atom]

<< Home


Real Estate