void setAccuracy(int accuracy)设置精度,Indicates the desired accuracy for latitude and longitude.
void setAltitudeRequired(boolean altitudeRequired)是否需要提供海拔信息Indicates whether the provider must provide altitude information.
void setBearingAccuracy(int accuracy)获取方向的精度Indicates the desired bearing accuracy.
void setBearingRequired(boolean bearingRequired) 与上面的是配对的,是否需要Indicates whether the provider must provide bearing information.
void setCostAllowed(boolean costAllowed) 得到方位信息的时候是否会产生费用Indicates whether the provider is allowed to incur monetary cost.
void setHorizontalAccuracy(int accuracy) 设置水平方向的精度Indicates the desired horizontal accuracy (latitude and longitude).
void setPowerRequirement(int level)设置电量消耗的级别Indicates the desired maximum power level.
void setSpeedAccuracy(int accuracy)设置是否需要速度Indicates the desired speed accuracy.
void setSpeedRequired(boolean speedRequired)…Indicates whether the provider must provide speed information.
void setVerticalAccuracy(int accuracy)设置垂直方面的精度Indicates the desired vertical accuracy (altitude).
3、追踪用户位置定位
主要用到的是前面讲到的绑定监听器的方法
public void requestLocationUpdates (Stringprovider, long minTime, float minDistance, LocationListener listener)