ayoola-solomon / mytracks

Automatically exported from code.google.com/p/mytracks
0 stars 0 forks source link

Allow splits of less than 1 mile #620

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
The current version of this app (1.1.10) has 1 mile as the smallest 
distance-based split frequency and announcement frequency.  It would be VERY 
useful to allow 1/4 and 1/2 mile split times to be announced, and perhaps 
recorded.  Runners who are training for half marathons and marathons need to 
know their pacing at these intervals.  Only getting an announcement every mile 
makes it difficult to maintain a proper training pace.

Original issue reported on code.google.com by ryan.cha...@gmail.com on 1 Nov 2011 at 5:02

GoogleCodeExporter commented 9 years ago
I know I have outlined a solution to this before but I cannot find that.  I 
will outline it again here.

Basically go to the file:
http://code.google.com/p/mytracks/source/browse/MyTracks/res/values/arrays_do_no
t_translate.xml
Change the array recording_task_frequency_values
to add values like
-1125
-1250
-1500
Then in:
http://code.google.com/p/mytracks/source/browse/MyTracks/src/com/google/android/
apps/mytracks/services/tasks/PeriodicTaskExecutor.java
in the function
calculateNextTaskDistance
if taskFrequency > 1000 treat it as a partial distance ie
taskFrequency -1125 actually should be 1/8 [mi or km]

There is probably a bit more to get this right but this should be enough to get 
started.

Original comment by sandordo...@google.com on 30 Nov 2011 at 12:24

GoogleCodeExporter commented 9 years ago

Original comment by jshih@google.com on 10 Sep 2012 at 11:59