Android不同精度的定位

我们在开发LBS类应用时必然会用到Android的定位,本文来看看Android下的不同精度的定位,以及如何判断定位是否更精确。

首先,我们需要1个LocationManager类:

private LocationManager locationManager;
locationManager = (LocationManager)this
    .getSystemService(Context.LOCATION_SERVICE);

有了locationManager之后,我们便可以开始监听位置的变化了,使用LocationManager中的方法:

Continue reading