What steps will reproduce the problem?
1. export a track in any format
2. compare the locations in the file with the locations in the database
What is the expected output? What do you see instead?
I expect that the number of location in the file is the same as the number of
locations the database, but the first location is missing.
What version of MyTracks are you using? On what version of Android? On what
phone?
I'm using rev fb520a745b Android 2.1 still on my favorite HTC Desire
Please provide any additional information here:
I think the problem is in:
http://code.google.com/p/mytracks/source/browse/MyTracks/src/com/google/android/
apps/mytracks/content/MyTracksProviderUtilsImpl.java#857
the statement should look like this:
if (!cursor.moveToFirst()) {
Log.w(MyTracksProvider.TAG, "Could not move to first.");
buffer.setInvalid();
return;
}
do {
Location location = createLocation(cursor);
if (location == null) {
continue;
}
buffer.add(location, cursor.getLong(idColumnIdx));
} while (cursor.moveToNext());
Original issue reported on code.google.com by steffen.horlacher@gmail.com on 6 Jun 2010 at 8:53
Original issue reported on code.google.com by
steffen.horlacher@gmail.com
on 6 Jun 2010 at 8:53