Commit Graph

739 Commits (master)

Author SHA1 Message Date
voussoir 29a4a1dae3 Version 1.3.0. 2023-12-26 19:14:16 -08:00
voussoir 31c77528d7 Fix behavior of track delete button after using when was I here.
The delete button was deleting all points between the first and last,
which, when you use the "when was I here" button, could span days
or months that you don't want to delete. So, after doing a spatial
query, the delete button will only delete the points that are shown.
2023-12-25 21:37:35 -08:00
voussoir 535133ce22 Rename deleteButton to delete_whole_track_button. 2023-12-25 20:13:59 -08:00
voussoir a04a0d3a3a Show current position on Track view.
This primarily helps when you want to use the "when was I here" button,
to remember a previous day when you were at the same location.

Besides that, seeing the current realtime location provides helpful
context to historical tracks.
2023-12-24 22:23:27 -08:00
voussoir eb1ad45c4c Remove permission launcher from MapFragment, already in MainActivity. 2023-12-24 22:20:43 -08:00
voussoir 47c338f38f Rename tracker_service variables for clarity. 2023-12-24 22:19:35 -08:00
voussoir cd25415e9b Remove unneeded thismapfragment. 2023-12-24 22:18:34 -08:00
voussoir a75ee66ca4 Remove code for toggleLocationErrorBar. 2023-12-24 22:18:10 -08:00
voussoir 70e6e64918 Let "when was I here" button query all device ids. 2023-12-24 19:47:13 -08:00
voussoir d5df922d3d Version 1.2.1. 2023-12-24 19:28:33 -08:00
voussoir a27b8713a9 A little bit of extra logging. 2023-12-03 21:09:23 -08:00
voussoir 42311b446b Show reason for dead state on notification. 2023-11-30 22:41:10 -08:00
voussoir 4e2beedaef Rename gave_up_at to dead_at. 2023-11-30 22:40:38 -08:00
voussoir 33405cd063 Reload the database when resuming full_power.
I had an incident where I was tampering with the database on my
computer, being synced over Syncthing, and I caused a conflict that
made the app stop recording, even though the app UI continued to show
the normal recording icons. Closing and re-opening the db connection
when leaving the house would have helped prevent that.
2023-11-30 17:43:46 -08:00
voussoir 37c5754a24 Go to dead state if app tries to record without database ready. 2023-11-30 17:41:57 -08:00
voussoir b84185ea4e Escape ampersands and angle brackets from track title in GPX. 2023-11-30 17:41:21 -08:00
voussoir 52dbae2f41 Remove commit parameter, do it on the caller side. 2023-11-30 17:41:00 -08:00
voussoir 0fc6971d9d Show database ready time in debug info. 2023-11-30 17:38:23 -08:00
voussoir c6a0212fb8 Add mirror. 2023-09-11 21:13:37 -07:00
voussoir 7a769bddf4 Version 1.2.0. 2023-09-04 12:36:07 -07:00
voussoir 38675acb6c Show accuracy in debug stats. 2023-09-04 12:36:07 -07:00
voussoir 7d05b4c777 Refer to system time as "clock" instead of "now". 2023-09-04 12:36:07 -07:00
voussoir e7463c5125 When interpolating, immediately select the new point.
This makes it easier to do multiple interpolations in a row.
2023-09-03 12:49:29 -07:00
voussoir b4e1762a2f Move select_trkpt into its own function. 2023-09-03 12:49:29 -07:00
voussoir 00ee14303d On vibrate on wake if debug mode is active.
The vibration provides a confirmation that the device's motion sensors
work as expected. But it makes sense to turn that off when not
2023-09-03 12:49:29 -07:00
voussoir dadce17f5e Update doze rant on readme. 2023-09-03 10:57:53 -07:00
voussoir 3710755bc1 Rewrite TrackerService to be more like a state machine. 2023-04-30 15:15:10 -07:00
voussoir 2e5be6a4e4 Commit database when arriving at home.
Since trkpt will stop capturing points, it will not reach the later
part of the handler that commits when a new point is 30 seconds
after the previous commit.
2023-04-12 20:58:58 -07:00
voussoir 2899bb992d Different straightening algorithm, dist based instead of time based.
Added a 30-meter distance check to prevent big editing disasters
but I'm not fully satisfied with this feature yet. I think this
is a little better than before though.
2023-04-12 17:29:22 -07:00
voussoir a181d67150 Add preference max accuracy, filters inaccurate points from view. 2023-04-09 20:27:08 -07:00
voussoir 3b1ccb7781 Use accuracy=0 for import, not null. 2023-04-09 10:33:53 -07:00
voussoir c689d9e37f Rearrange track statistics. 2023-04-06 16:53:40 -07:00
voussoir a48b2d8107 Version 1.0.3. 2023-04-05 18:21:50 -07:00
voussoir c722e7cad1 Let notification say (home) when at home. 2023-04-05 18:06:43 -07:00
voussoir 540f09525d Add notice of wakelock to readme. 2023-04-05 18:05:08 -07:00
voussoir 47e0c36c3a Add straighten button, straightens trkpts between two points. 2023-04-05 18:04:56 -07:00
voussoir a8e2bb26fd Add interpolate button, adds point between two points. 2023-04-05 18:04:27 -07:00
voussoir cee0f7bef4 Add draggable marker to move trkpts in history. 2023-04-04 19:06:15 -07:00
voussoir 07bd7bbb0b Add optional commit parameter to database functions. 2023-04-04 18:58:25 -07:00
voussoir 17e85379f8 Tap the map background to deselect trkpt. 2023-04-04 18:42:03 -07:00
voussoir 8b396f3bba Fix logic error releasing wakelock. 2023-04-04 18:05:43 -07:00
voussoir 9dacf8b68e Improve visual centering of app icon. 2023-04-03 19:55:39 -07:00
voussoir b463752774 Increase time until sleep and reduce watchdog pace. 2023-04-03 19:07:03 -07:00
voussoir 4eb67120a5 Don't go to dead from sleep, doze produces extremely long delays. 2023-04-03 19:06:27 -07:00
voussoir 9b81b7ea19 Remove unused code. 2023-04-03 19:04:25 -07:00
voussoir ccde7c9f81 Use current time in notification setwhen.
The text of the notification will still say the most recent location,
but in going from fullpower to dead I want the time of the notification
itself to be the moment of rip.
2023-04-03 19:03:54 -07:00
voussoir 548dcf2c58 Add wakelock to prevent doze when not at home.
Recently I took a 90 minute drive, and trkpt missed about 15
minutes of it. It wasn't until now that I realized it probably
went into doze mode due to the low accelerometer movements.
If the device is plugged in it does not doze, but to achieve the
no-friction goal we should not be required to take it out of our
pocket and plug in all the time for fear of missing points.
2023-04-03 19:03:05 -07:00
voussoir f55d683fe7 Move some strings to strings.xml. 2023-04-03 18:58:38 -07:00
voussoir f6f5bf5809 Don't destroy the notification after service stops. 2023-04-02 20:35:43 -07:00
voussoir 97c2ccb4d5 Don't treat unbind as dead. 2023-04-02 20:35:13 -07:00