我目前正在开发一个应用程序,它会不时获取用户位置并存储它,然后它会通过网络发送它。我一直在测试位置轮询器,但遇到了一些问题,似乎在某些 android 模型中,有一段时间没有收到位置更新。该服务确实运行,但仅返回最后一个已知位置。下面是我收到的一些数据来说明我的意思:
+----------+------------------+--------------------+--------------+--------------+
| Accuracy | Date registered | Date from position | Lat | Lng |
+----------+------------------+--------------------+--------------+--------------+
| 8.3 | 16/08/2013 14:23 | 16/08/2013 14:23 | -2.361.446 | -4.665.134 |
| 45 | 16/08/2013 14:28 | 16/08/2013 02:26 | -235.644.403 | -465.143.039 |
| 45 | 16/08/2013 14:32 | 16/08/2013 02:26 | -235.644.403 | -465.143.039 |
| 45 | 16/08/2013 14:36 | 16/08/2013 02:26 | -235.644.403 | -465.143.039 |
| 45 | 16/08/2013 14:40 | 16/08/2013 02:26 | -235.644.403 | -465.143.039 |
| 45 | 16/08/2013 14:44 | 16/08/2013 02:26 | -235.644.403 | -465.143.039 |
| 45 | 16/08/2013 14:48 | 16/08/2013 02:26 | -235.644.403 | -465.143.039 |
| 45 | 16/08/2013 14:52 | 16/08/2013 02:26 | -235.644.403 | -465.143.039 |
| 45 | 16/08/2013 14:56 | 16/08/2013 02:26 | -235.644.403 | -465.143.039 |
| 45 | 16/08/2013 15:00 | 16/08/2013 02:26 | -235.644.403 | -465.143.039 |
| 45 | 16/08/2013 15:04 | 16/08/2013 02:26 | -235.644.403 | -465.143.039 |
| 45 | 16/08/2013 15:08 | 16/08/2013 02:26 | -235.644.403 | -465.143.039 |
| 45 | 16/08/2013 15:12 | 16/08/2013 02:26 | -235.644.403 | -465.143.039 |
| 45 | 16/08/2013 15:16 | 16/08/2013 02:26 | -235.644.403 | -465.143.039 |
| 45 | 16/08/2013 15:20 | 16/08/2013 02:26 | -235.644.403 | -465.143.039 |
| 45 | 16/08/2013 15:24 | 16/08/2013 02:26 | -235.644.403 | -465.143.039 |
+----------+------------------+--------------------+--------------+--------------+
有任何想法吗?