Address Rodrigo's comments.

This commit is contained in:
Sandor Dornbush
2010-08-23 09:05:55 -07:00
parent 9ba93ff8d2
commit 71a36d1b25
4 changed files with 8 additions and 4 deletions
@@ -961,6 +961,11 @@ public class MyTracksMap extends MapActivity
// do nothing
}
/**
* Set the sampling frequency from the total number of points in the track.
*
* @param track The track to read the total number of points from.
*/
private void setSamplingFrequency(Track track) {
long totalLocations = track.getStopId() - track.getStartId();
@@ -969,7 +974,6 @@ public class MyTracksMap extends MapActivity
(int) (1 +
totalLocations / MyTracksConstants.TARGET_DISPLAYED_TRACK_POINTS);
Log.i(MyTracksConstants.TAG, "Sampling locations: " + samplingFrequency);
}
private void readAllNewTrackPoints() {
+1 -1
View File
@@ -1,9 +1,9 @@
<?xml version="1.0" encoding="UTF-8"?>
<classpath>
<classpathentry combineaccessrules="false" kind="src" path="/MyTracks"/>
<classpathentry kind="con" path="com.android.ide.eclipse.adt.ANDROID_FRAMEWORK"/>
<classpathentry kind="src" path="src"/>
<classpathentry kind="src" path="gen"/>
<classpathentry kind="lib" path="libs/easymock.jar"/>
<classpathentry combineaccessrules="false" kind="src" path="/MyTracks-opensource"/>
<classpathentry kind="output" path="bin"/>
</classpath>
+1 -1
View File
@@ -3,7 +3,7 @@
<name>MyTracksTest</name>
<comment></comment>
<projects>
<project>MyTracks-opensource</project>
<project>MyTracks</project>
</projects>
<buildSpec>
<buildCommand>
@@ -12,7 +12,7 @@ import java.util.List;
/**
* Tests for the GPX track exporter.
*
* @author Rodrigo Damazio
* @author Sandor Dornbush
*/
public class TcxTrackWriterTest extends TrackFormatWriterTest {