问题
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