【发布时间】:2012-06-19 15:21:31
【问题描述】:
我使用此代码获取 gps 传感器数据。
mlocManager = (LocationManager) getSystemService(Context.LOCATION_SERVICE);
mlocListener = new MyLocationListener();
mlocManager.requestLocationUpdates(LocationManager.GPS_PROVIDER, 2000, 1, mlocListener);
为什么我的 gps 图标一直亮又灭?
【问题讨论】:
-
如果你的意思是图标的闪烁,那么我猜,你的手机 GPS 传感器搜索卫星。
-
程序正确返回位置和速度,但图标仍在闪烁。我认为 time=2000 发生了一些事情,但我不知道确切。
标签: android-location