答案 0 :(得分:0)
LocationManager locationManager = (LocationManager) getSystemService (LOCATION_SERVICE);
LocationListener listener = new LocationListener() { }
locationManager.requestLocationUpdates(GPS_PROVIDER, intervall , distance, listener);
interval参数用于在指定时间(以毫秒为单位)内获取位置更新。