Join GitHub today
GitHub is home to over 50 million developers working together to host and review code, manage projects, and build software together.Sign up
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.
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.
Refactored launcher activity for setup Refactored wizzard activity Added Play Services checks general fixes Improved map follow behavior (#352), fixed crt import for some content providers (#339), fixed missing actionbar on lower APIs (#350), fixed Google Play services check on startup Fixed region action mode colors and behavior Fixed bottom sheet Gradle fixes (#360) * Fix error running ./gradlew from command-line. These changes were generated automatically by running: .../android-studio/gradle/gradle-2.10/bin/gradle wrapper Previously. gradle-wrapper.jar was missing from the repo, so running "./gradlew" would produce an error: Error: Could not find or load main class org.gradle.wrapper.GradleWrapperMain * Use secure connection to access gradle repositories (HTTPS). ignore backups new versions sample code to get a widget created got location into widget textview refactored widget logic into ServiceWidget Store list of waypoints per contact and crude distance computation logs Added StackView and moving to adaptor based updates basic setup for the StackView in widget restructuring progress rendering first cut working version of widget added better resources and widget preview widget UI tweaks cleaned up log prints Tweaked widget UI to show geo-coded location Adding support for incremental waypoint updates Setting the right topic for remote command requesting other user's waypoints