You are right!
I reproduced in my own GPS app and if seconds>59 you get a conversion
error. I took a quick look in the android source (location/java/
android/location/location.java) and the bug is clearly visible:
Currently reads:
if (sec < 0 || sec > 59) {
throw new IllegalArgumentException("coordinate=" +
coordinate);
}
Should (I think) read:
if (sec < 0 || sec >= 60) {
throw new IllegalArgumentException("coordinate=" +
coordinate);
}
I was going to raise a bug report but it's already there - issue 2667
and 2668
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~----------~----~----~----~------~----~------~--~---