Closed GoogleCodeExporter closed 9 years ago
As it stands in-code, if the user specifies to send the coordinates along with a
picture, it first checks to see if the picture has coordinates embedded in it
(by
default, if Android takes the picture and can get a GPS signal, it will), and
if it
doesn't, it then tries the last known location from the map, and failing THAT,
it
should ignore it entirely and treat it as if the user didn't check the box at
all.
I just tested it with a few pictures and configurations, and I can't figure out
how
that user got a "null, null" in the location. If this can be reproduced, then
I can
fix it, but as it stands, I don't know how that happened.
Original comment by captains...@gmail.com
on 31 Jan 2010 at 9:15
Oooooh... oops, my mistake, there IS a way in which that could happen. Yes, if
the
picture doesn't have location data, it just returns null to the String
variables,
which, in turn, WILL report them as "null", as opposed to throwing an exception
which
leads it to try to use the last-known location from the map.
However, in fixing issue 12 (r336 and r337), I serendipitously fixed this as
well. I
now have it formatting the data from the latitude and longitude of the picture.
If
DecimalFormat gets a null, that WILL throw an exception and keep the whole thing
moving along.
I've tested it on my test wiki (barring the problems in issue 8), and all seems
to be
well. If you could test it yourself, we could get this one closed.
Original comment by captains...@gmail.com
on 31 Jan 2010 at 9:29
Yay!
I will try to test it in the field, but I would trust you that we can close it
for now.
Original comment by thomas.h...@gmail.com
on 31 Jan 2010 at 9:58
Got it! Closing it now, then...
Original comment by captains...@gmail.com
on 31 Jan 2010 at 10:36
Original issue reported on code.google.com by
thomas.h...@gmail.com
on 31 Jan 2010 at 12:45