English 中文(简体)
位置管理器请求
原标题:LocationManager requestLocationUpdates minTime parameter not working

我正在用GPS来操作我的手机。它在我的手机中工作正确, 但当我在另一部移动中安装了软件时, 位置管理器的“ mintime” 参数。 请求更新无效 。

locationManager.requestLocationUpdates(LocationManager.GPS_PROVIDER, minTime, misDistance,locationListener);

我有“时间=120000”(2分钟)和“偏差=30”(30米)。

之所以未能成功,可能是因为第二部手机的准确性(更差)?

问题回答

分钟参数只是一个提示,请参见这里了解更多信息:https://stackoverflow.com/a/4424527/112747492





相关问题
Query about getting GPS Location

Is there any way to set Criteria for LocationProvider depending upon the network provider, means determining whether the network provider supports CellSite mode or autonomous mode or any other mode. ...

Android google map myLocationOverlay disappears?

I try to add myLocationOverlay to the map. It was not there at first, then when I send the gps position from the ddms, then the blue shining dot appear. However, after awhile, the blue dot disappear ...

Accessing GPS Data From a .Net Winform Application

Does anyone out there have any experience programatically retreiving the lat/long from a GPS attached to a mobile PC? A team I m on is currently looking at hardware options--as the programmer who ...

Can Google Maps plot points based on Hours Minutes Seconds

I m trying to plot out GPS data that is given to me in Hour Minute Second degree format. Will GLatLng take it in this form or do I need to convert it first. Having a hard time finding anything on the ...

热门标签