leduycuong86 / openbmap

Automatically exported from code.google.com/p/openbmap
Other
0 stars 0 forks source link

Progress bars for upload never move #44

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. Collect data.
2. Save.
3. Upload.

What is the expected output? What do you see instead?
A dialog with a progress bar appears, but progress stays at 0/100 until the 
dialog is dismissed.

What version of the product are you using? On what operating system?
9463714701c9 (iirc) on Cyanogenmod 10.1.3.

Please provide any additional information below.

Original issue reported on code.google.com by mich...@vonglasow.com on 2 Oct 2013 at 10:25

GoogleCodeExporter commented 9 years ago
Just as an idea so that the progress bar will move somewhat in proportion to 
time: As a rule of thumb, exporting files from the DB takes about 1/100 of the 
time needed to upload them over WiFi. 

For most cases, it should be OK to leave the progress bar at zero while 
exporting data, count the files created and update the bar when all files have 
been created. Then count up with every file uploaded.

If GPX is enabled - in my experience exporting the GPX track takes about half 
of the total time. Thus: when GPX upload is enabled, the progress bar should be 
at 50% when upload is finished, and update during GPS export. (Btw, why is GPX 
export so slow? OSMTracker is a lot faster for doing something similar... 
though old versions were a lot slower, then they fixed something and export got 
a lot faster.)

Original comment by mich...@vonglasow.com on 4 Oct 2013 at 7:29

GoogleCodeExporter commented 9 years ago
For the moment, I just set the progress bar style to indeterminate.

> Btw, why is GPX export so slow?
Guess it was just the amount of data.. Previous versions dumped all 
measurements to the gpx file. Behaviour is changed in the latest release, so 
that only strongest measurement is written to gpx file..

Original comment by wish7code on 6 Oct 2013 at 11:42

GoogleCodeExporter commented 9 years ago
For the time being, ended up with a very basic version: instead of calculating 
a percent value or the estimated time, the number of files still to upload is 
displayed (similar to the old client) and instead of a percentage bar, the 
rotating 'in progress' symbol is displayed

Original comment by wish7code on 16 Oct 2013 at 5:26