Commit graph

720 commits

Author SHA1 Message Date
7a769bddf4 Version 1.2.0. 2023-09-04 12:36:07 -07:00
38675acb6c Show accuracy in debug stats. 2023-09-04 12:36:07 -07:00
7d05b4c777 Refer to system time as "clock" instead of "now". 2023-09-04 12:36:07 -07:00
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
b4e1762a2f Move select_trkpt into its own function. 2023-09-03 12:49:29 -07:00
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
debugging.
2023-09-03 12:49:29 -07:00
dadce17f5e Update doze rant on readme. 2023-09-03 10:57:53 -07:00
3710755bc1 Rewrite TrackerService to be more like a state machine. 2023-04-30 15:15:10 -07:00
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
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
a181d67150 Add preference max accuracy, filters inaccurate points from view. 2023-04-09 20:27:08 -07:00
3b1ccb7781 Use accuracy=0 for import, not null. 2023-04-09 10:33:53 -07:00
c689d9e37f Rearrange track statistics. 2023-04-06 16:53:40 -07:00
a48b2d8107 Version 1.0.3. 2023-04-05 18:21:50 -07:00
c722e7cad1 Let notification say (home) when at home. 2023-04-05 18:06:43 -07:00
540f09525d Add notice of wakelock to readme. 2023-04-05 18:05:08 -07:00
47e0c36c3a Add straighten button, straightens trkpts between two points. 2023-04-05 18:04:56 -07:00
a8e2bb26fd Add interpolate button, adds point between two points. 2023-04-05 18:04:27 -07:00
cee0f7bef4 Add draggable marker to move trkpts in history. 2023-04-04 19:06:15 -07:00
07bd7bbb0b Add optional commit parameter to database functions. 2023-04-04 18:58:25 -07:00
17e85379f8 Tap the map background to deselect trkpt. 2023-04-04 18:42:03 -07:00
8b396f3bba Fix logic error releasing wakelock. 2023-04-04 18:05:43 -07:00
9dacf8b68e Improve visual centering of app icon. 2023-04-03 19:55:39 -07:00
b463752774 Increase time until sleep and reduce watchdog pace. 2023-04-03 19:07:03 -07:00
4eb67120a5 Don't go to dead from sleep, doze produces extremely long delays. 2023-04-03 19:06:27 -07:00
9b81b7ea19 Remove unused code. 2023-04-03 19:04:25 -07:00
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
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
f55d683fe7 Move some strings to strings.xml. 2023-04-03 18:58:38 -07:00
f6f5bf5809 Don't destroy the notification after service stops. 2023-04-02 20:35:43 -07:00
97c2ccb4d5 Don't treat unbind as dead. 2023-04-02 20:35:13 -07:00
328e56cb05 Don't use title case for strings on settings page. 2023-04-02 18:54:35 -07:00
1637ef16d6 Improve isolate_trkseg feature by querying its endpoints for more. 2023-04-02 18:41:16 -07:00
01a313a69c Describe exact power management state transitions in readme. 2023-04-02 17:18:33 -07:00
04d27ab984 Double the give up time during sleep.
If you're gonna die in your sleep, you may as well sleep in.
2023-04-02 16:16:59 -07:00
531ff36ed0 Add preference to show debug information on main screen. 2023-04-02 16:13:56 -07:00
eff08eb375 Also watch charging status, don't kill GPS while on power. 2023-04-02 16:12:44 -07:00
9e75502477 Don't reset from dead just by looking at the screen.
This was making it hard to debug because I couldn't actually
look at the problem without it fixing itself.
2023-04-02 16:11:23 -07:00
89035e0323 Various linting. 2023-04-02 16:07:22 -07:00
7788352286 Disable the polyline's infowindow in mapfragment. 2023-04-02 12:29:06 -07:00
3a4ae9d723 Reset arrived_at_home while resetting listeners, not sleeping. 2023-04-02 12:13:19 -07:00
1a18ac22e4 Dedent this code with a continue. 2023-04-02 12:12:32 -07:00
61169a56de Don't update notification if database is not ready. 2023-04-02 12:11:57 -07:00
f90d8f620e Gitignore app/release/output-metadata.json. 2023-04-02 10:06:50 -07:00
5928643325 Add OSM copyright to about section. 2023-04-02 10:05:50 -07:00
6a780d3e46 Add import_gpx.py. 2023-04-02 08:46:01 -07:00
d2eb6ccde4 Also show the accuracy in the selected_trkpt_info. 2023-04-02 08:45:14 -07:00
2e84ecb295 Add power management to readme. 2023-04-01 17:53:34 -07:00
cb47f9ab49 Combine unnecessary else if. 2023-04-01 17:37:16 -07:00
6ad4c2dbe5 Also watch step counter movement, notification icon by status. 2023-04-01 13:56:27 -07:00