[PATCH] Ticket #423 - Import GPX file from SD card

Aurélien PRALONG aurelien.pralong at gmail.com
Wed Mar 12 15:21:58 PDT 2014


Venkatesh,

> Firstly, the enhancement is added. That was really necessary.
Great.

> It might be a good idea to combine both and have something like "sym +
name" shown as the dive name.
Indeed. Even better : check if none is empty, then "sym - name". Anyway,
if it is too much, users may edit the title later.

> The marker has been replaced in the map picker.
Great (bis). Now it works as expected. Still, I would remove the black band
between the title and the map, and replace the title by "Click to select".
This way you gain some precious pixels on the screen.

> The location I would go for a dive could be a place with a different
local time
Indeed. To resume previous mails, divers prefer to keep local time. So no
timezone is required. From a code perspective, it means that we save the
date as if we were on GMT timezone, but with local hour. Eg. if it is 15h45
at Bucharest (GMT +2), we would store the time as 15h45 GMT. We have some
time utils in DateUtils for these kinds of manipulation.

> So, in order to simplify things and rise above the cloud of my doubts, I
chose time difference between now and the dive
> to be the input given by the user.
I don't know if it will be the case, but if you add all your dives at the
end of your holidays, removing minutes for several days will be
complicated. So a time & date picker will be more appropriate. Another
thing I think disturbing is that you show the title & date popup after
having closed the map. I would do it only on validate, as it doesn't break
the context.

> - SimpleDateFormat are not thread-safe. Do not make them final.
Instanciate them each time it is necessary
You forget some in GpxDiveListAdapter

Finally, some words on your commit :
- You forgot to remove the old org.subsurface.GpxParser
- It may be personal, but I think that "Improved code as suggested by
Aurélien<https://github.com/venkateshshukla/subsurface-companion/commit/b107c4248d2be75b7c2645262682e87dab20aaba>"
looks weird when you do "git log --oneline". Referencing the discussion in
the subject is good and enough. Just describe the content. Who suggested it
is not the first thing you want to know.

> Which of these is more viable for GSOC, given the time period of two
months? Which would benefit the community
> more and has greater necessity?
> Also, I am not a diver and would not have a divecomputer with me. So, is
it possible to develop libdivecomputer
> for android without having a divecomputer?
I'm not a mentor for GSoC (although I'll try to help for Android), so I'll
let anyone else answer you.

Aurélien
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.hohndel.org/pipermail/subsurface/attachments/20140312/ee1fb7d3/attachment.html>


More information about the subsurface mailing list