Skip to content

Create multiple track segments when tracking is stopped and later res…#591

Closed
AlainKnaff wants to merge 8 commits intolabexp:developfrom
AlainKnaff:track-segments-2025
Closed

Create multiple track segments when tracking is stopped and later res…#591
AlainKnaff wants to merge 8 commits intolabexp:developfrom
AlainKnaff:track-segments-2025

Conversation

@AlainKnaff
Copy link

…umed to avoid criss-crossing lines on map

Description

Hi,

This pull pull request is an update of (#310) ("Track segments" when tracking is stopped and later resumed)

This PR resolves the conflicts with the dev branch (newest osmdroid that uses Polylines) which prevented the eal

It also associates consecutive segment numbers with each segment, rather than marking the first point of each segment.

Thx for merging,

Alain

Related issues

#295

Pull Request Checklist

  • The PR is proposed to the proper branch.
  • The changes have been tested on the target Android API and minimum Android API.
  • Automated tests have been added (if applicable).
  • The feature is well documented.
  • There is a reference to the original bug report and related work.

@Andyporras
Copy link
Member

Andyporras commented Aug 15, 2025

Hello @AlainKnaff , could you pass the pr to the develop branch?

@AlainKnaff
Copy link
Author

How do I do that?

@AlainKnaff AlainKnaff changed the base branch from master to develop August 15, 2025 18:16
@AlainKnaff
Copy link
Author

Ok, found it

@AlainKnaff
Copy link
Author

Is this still on your radar, or is there anything what I still need to be doing here?

@jamescr jamescr added this to the 2026.08 milestone Feb 15, 2026
@jamescr jamescr self-assigned this Feb 15, 2026
@jamescr
Copy link
Member

jamescr commented Feb 15, 2026

I'll review your PR.

@AlainKnaff
Copy link
Author

I'll review your PR.

Thanks

* atmospheric pressure
*/
public void track(long trackId, Location location, float azimuth, int accuracy, float pressure) {
public void track(long trackId, Location location, float azimuth, int accuracy, float pressure, boolean newSeg, long segId) {
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Var newSeg is never used in this method; please delete it.

*/
private PressureListener pressureListener = new PressureListener();

private boolean newSeg = false;
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Var newSeg isn't really used in this file. It can be deleted.

@jamescr
Copy link
Member

jamescr commented Feb 21, 2026

Thanks for your work on this PR! It's a valuable contribution to OSMTracker 🚀

I started the review and commented a little, but the PR has some conflicts with the latest changes in the develop branch. Please rebase your branch onto the current ⁣develop to resolve them.
Happy to help if you run into any issues!

@jamescr
Copy link
Member

jamescr commented Feb 21, 2026

If you don't mind, I created a branch in my repo to help resolve the conflicts and suggest some improvements and then open a pull request against your branch.

@AlainKnaff
Copy link
Author

Ok, so I fixed the newSeg issue (which turned out to be a leftover from an earlier version of the change).

Anything else that needs to be done? If so, what concrete steps do I need to perform to solve the issue (if there is any issue left)?

Thanks

@jamescr
Copy link
Member

jamescr commented Feb 22, 2026

Due to the delay in reviewing and merging it, the Git history of the PR got a little messy. It requires rebases and conflict solving, so I took the original commit with the contribution (thanks to @AlainKnaff), cherry-picked it to a branch created from develop, and opened a PR ready to be merged. So, I'll close this one.

@jamescr jamescr closed this Feb 22, 2026
@jamescr jamescr mentioned this pull request Feb 23, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants