问题
Is there any way to have access to the blue flash light appears on google map? I have read in different forums that this blue arc is representative of the reliability of the magnet sensor, is there any way to have access to it in android?
回答1:
I went through Android SDK for magnet outputs. I have found one method that measure the accuracy of magnet based direction of movement. Have you seen following method?
@Override
public void onAccuracyChanged(Sensor sensor, int i) {
if(sensor.getType() == Sensor.TYPE_MAGNETIC_FIELD){
}
}
This outputs the accuracy in 4 levels for magnet based heading estimation.
来源:https://stackoverflow.com/questions/53984194/blue-flash-light-arc-on-google-maps