Dennis Guse
da70fca389
Bugfix: TrackStatistics handles SEGMENT_START_AUTOMATIC properly.
2021-04-13 19:18:18 +02:00
Dennis Guse
0fb43f6530
Test: fix failing Export/Import tests.
...
While recording with the sensor is used while on import only the GPS distance is available.
Introduced in a5158a55d9
Fixes #670 .
2021-04-13 19:18:18 +02:00
Dennis Guse
6f9c788965
Value objects distance and speed.
...
#679
2021-04-13 19:18:18 +02:00
Dennis Guse
1e518a4c35
Use a non-static Binder for TrackRecordingService.
...
Fixes #98 .
2021-04-09 18:34:23 +02:00
Dennis Guse
bc1b4e3cd2
Rename elevation to altitude (without translations).
...
Fixes #678 .
2021-04-04 17:45:38 +02:00
Román Martínez
e09b04308c
Track recording service handles the status of recording: track's id, pause and GPS status.
...
Created an interface for all components that want to know about recording status through the service.
All interface's methods are optional so every component can implement what they need.
Fixes #388 .
2021-04-04 13:15:42 +02:00
Dennis Guse
2431d60171
Cleanup.
2021-03-15 17:27:41 +01:00
Dennis Guse
a5158a55d9
Use distance from cycling speed sensors.
...
Fixes #505 .
2021-03-15 17:27:41 +01:00
Dennis Guse
15fbd90ca4
Performance: Keep reference to sharedPreferences.
...
So far, we opened the SharedPreferences very often, which is very slow; also happened in the UI thread a lot.
Fixes #642 .
2021-03-15 12:01:32 +01:00
Dennis Guse
7b7d7c8061
GPX: export and import power data.
...
Fixes #638 .
2021-03-14 19:22:29 +01:00
Dennis Guse
508af45449
Refactored TrackImporter interface.
2021-03-11 21:16:36 +01:00
Dennis Guse
fa12086951
GPX: only export TrackPoints with lat/lng. ( #591 )
...
GPX: only export TrackPoints with lat/lng.
Thus, segmentation (manual/automatic) cannot be restored on import.
This also affects the TrackStatistics.
2021-02-09 19:00:28 +01:00
Dennis Guse
cbe469d5e4
Import: empty tracks cannot be imported as TrackStatistics cannot be restored.
...
#316 .
2021-01-24 22:21:37 +01:00
Dennis Guse
5aa016b5b9
Import: compute TrackStatistics onTrackEnd.
...
ExportImportTest were not checking TrackStatistics correctly.
#316 .
2021-01-24 22:21:37 +01:00
Dennis Guse
912fd1aa2f
TrackStatistics startTime/stopTime is null on creation.
2021-01-24 22:21:36 +01:00
Dennis Guse
e990b413cd
Replace long time_ms with Instant and Duration, respectively.
...
Fixes #561 .
2021-01-24 22:21:36 +01:00
Dennis Guse
9f6d6711e5
Segments: on import restore manual segment start/end if resume/pause trackpoints were exported.
2021-01-24 22:21:36 +01:00
Dennis Guse
ab47320216
Segments: import/export is working incl. restoring TrackStatistics.
...
KML exports sensor data if actually present.
#316 .
2021-01-24 22:21:36 +01:00
Dennis Guse
fcc17413e3
Segments: use TrackPoint.type.
...
So, far specific latitude for segment start/end (i.e., PAUSE/RESUME) was used.
#316 .
2021-01-24 22:21:36 +01:00
Dennis Guse
577b978a5c
Cleanup.
2021-01-10 20:25:59 +01:00
Román Martínez
fd1b7b8af9
Added opentracks:gain and opentracks:loss information in GPX files. Fixes #555 .
2020-12-26 20:30:10 +01:00
Dennis Guse
2255624235
Cleanup: rename waypoint to marker (tests).
2020-12-13 18:05:08 +01:00
Peter Storch
215c28be85
fix #537 ignore waypoint markers with invalid
...
coordinates on import.
I've also added a unit test with such an export file.
2020-11-29 13:56:22 +01:00
Dennis Guse
a74b5fc743
Cleanup.
2020-11-21 18:42:32 +01:00
Dennis Guse
9541a92657
Small cleanups and improvements code.
2020-10-31 20:39:37 +01:00
Román Martínez
acc2627bde
Activity with progress and summary for import all option. Fixes #471 .
...
ErrorListDialog shared by ExportActivity and ImportActivity.
2020-10-31 20:39:37 +01:00
Dennis Guse
48c3695b5d
Database enforces foreign key constraints incl. cascading deletes. ( #480 )
...
* Database enforces foreign key constraints incl. cascading deletes.
Fixes #317 .
2020-10-30 21:26:13 +01:00
Dennis Guse
e939778beb
Refactor: use marker instead of waypoint.
...
Fixes #389 .
2020-09-23 17:16:34 +02:00
Dennis Guse
04b8d0f4a8
Import/Export: elevation gain per TrackPoint.
2020-09-05 12:39:23 +02:00
Dennis Guse
9d6c9676ab
Refactoring to marker: content-package and fragments.
...
#389
2020-09-05 10:37:41 +02:00
Dennis Guse
74e09e1fa9
Refactoring to marker: data class and ContentProviderUtils.
...
#389
2020-09-05 10:20:16 +02:00
Dennis Guse
f128111650
Code cleanup.
2020-09-05 01:19:59 +02:00
Dennis Guse
bcbaf4985a
Implement Track.Id and Waypoint.Id (without tests).
...
Fixes #276 .
2020-08-22 23:18:48 +02:00
thrillfall
8425997c29
add overload for exporter that takes single track
2020-08-18 16:37:44 +02:00
thrillfall
f4b585b830
do not pass complete track data to exporter factory method just to knwo if there is more then one track to export
2020-08-18 16:37:44 +02:00
thrillfall
47c259fa9a
move tracks array from class state to method argument
2020-08-18 16:37:44 +02:00
thrillfall
2655d3e773
fix decorator TrackExporter interface
2020-08-18 16:37:44 +02:00
Dennis Guse
f821c8ba86
Fixed tests.
2020-08-15 21:12:10 +02:00
Dennis Guse
f8afa9dbad
Import/export track UUID (necessary for synchronization).
...
If a track with a UUID is presented in OpenTracks, it cannot be imported again (enforced by database constraint).
Fixes #307 .
2020-08-15 21:12:10 +02:00
Dennis Guse
065f42fbef
GPX import/export: speed via TrackPointExtension/v2.
...
Fixed data type for heartrate/speed (no decimals) allowed.
Fixes #335 .
Fixes #181 .
GPXTrackWriter: set Trackpointv2 header correctly and export time in correct sequence.
2020-07-24 22:06:58 +02:00
Román Martínez
23c3a4d651
Import/Export speed in GPX and KML files. ( #306 )
...
Import/Export speed in GPX and KML files. Fixes #300 .
2020-06-30 14:39:44 +02:00
Dennis Guse
ecdb509371
Export/import test now verifies the TrackPoints.
2020-06-22 21:56:22 +02:00
Dennis Guse
53b267150b
Export/Import: TrackFileFormat is now selected via settings only.
2020-05-24 10:58:43 +02:00
Dennis Guse
f485d90ef2
ContentProviderUtils.bulkInsertTrackPoint(): removed length parameter.
2020-04-14 19:42:17 +02:00
Dennis Guse
ec39e67a09
Removed Waypoint default constructor used by testing.
...
This avoids a null check for Waypoint.getLocation().
2020-04-14 07:12:56 +02:00
Dennis Guse
2ef74eb908
Automated code cleanup using AndroidStudio.
2020-04-05 21:56:26 +02:00
Dennis Guse
16c654141f
Renamed TripStatistics to TrackStatistics.
2020-04-05 21:56:26 +02:00
Dennis Guse
364b4702e3
Waypoint requires a non-null location.
...
Remove setLocation() from Waypoint and TrackPoint.
2020-03-30 19:52:06 +02:00
Dennis Guse
194379295d
TrackPoint has Location as delegate instead of inheritance.
2020-03-30 19:52:06 +02:00
Dennis Guse
901cffee97
Use TrackPoint instead of Location (and omit casting).
2020-03-30 19:52:06 +02:00