GPS Tracking - MIN_TIME_BW_UPDATES “hint” issue in android 2.3 (Gingerbread)

余生长醉 提交于 2020-01-05 18:38:44

问题


I have a problem in my GPS Tracking app.

I'm sending a sms message to users predefined contact every MIN_TIME_BW_UPDATES with his location.

It works really well, but when I tried it on Samsung Galaxy running on Android 2.3.5 platform it started updating every meter, (MIN_DISTANCE_CHANGE_FOR_UPDATES was 1 meter) when the user was walking (about 200 messages :)), I't works really well on ICS and JB, I couldn't find any documentation on these "hints".

As far as I understand MIN_DISTANCE_CHANGE_FOR_UPDATES = 1 by default means that I wish to update every MIN_TIME_BW_UPDATES even if the user hasn't moved. And as I said it worked exactly in this logic on other platforms.

I can include some of my code but for now don't see any point in that, I tested it for a while and it works just fine, but a few days ago I installed it on Gingerbread and it's acting really weird.

Some know anything about that issue? Or maybe a way to solving it?

来源:https://stackoverflow.com/questions/16521028/gps-tracking-min-time-bw-updates-hint-issue-in-android-2-3-gingerbread

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!