Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.Sign up
Added Waypoints widget #381
Owntracks Waypoint widget is an Android home-screen widget. It uses 2 pieces of information from each user who has shared his/her location:
The widget compares the location with all possible pairs of waypoints and (possibly) comes up with a pair that bounds the current location best. The waypoints from this pair are shown on the ends of a linear scale and the current location is placed on the scale based on distance from each end.
I will try to walk-through the code changes file-by-file (most critical first):
Please let me know if any more details are required.
Thank you for your contribution and the great documentation.
One thing that occured to me though: You're loading the waypoints on the main thread when the app starts. In the Andorid 7 branch I moved the service initialization to a backround thread to increase the app startup speed. I think we should do this here too.
It's probably an easy fix by moving the loading code to a runnable.