How about using the field strength values: determine a reasonable range and 
put up a Toast if the field strength is too large?
http://developer.android.com/guide/topics/sensors/sensors_position.html

On Saturday, October 13, 2012 11:26:58 AM UTC+1, Ichsan wrote:
>
> Does anybody know how to warn users of string magnetic field? I'm creating 
> a compass application. But when there are magnetic items around, the north 
> direction is going wrong.
>
> Using SensorEventListener#onAccuracyChanged doesn't help.
>
> Is there any tutorial telling me how to handle this problem?
>
> FYI, I followed this tutorial to create this compass app: 
> http://stackoverflow.com/questions/4819626/android-phone-orientation-overview-including-compass
>

-- 
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