Adding backup facilities. TODO: some tests, calling to trigger new automatic backup on Froyo, manual backup to SD option

This commit is contained in:
Rodrigo Damazio
2010-08-16 22:22:14 -03:00
parent df81fba565
commit 3532a6360b
18 changed files with 2223 additions and 25 deletions
@@ -15,6 +15,7 @@
*/
package com.google.android.apps.mytracks.content;
import android.content.ContentValues;
import android.content.Context;
import android.database.Cursor;
import android.location.Location;
@@ -267,6 +268,24 @@ public interface MyTracksProviderUtils {
*/
void updateTrack(Track track);
/**
* Creates a Track object from a given cursor.
*
* @param cursor a cursor pointing at a db or provider with tracks
* @return a new Track object
*/
Track createTrack(Cursor cursor);
/**
* Creates the ContentValues for a given Track object.
*
* Note: If the track has an id<0 the id column will not be filled.
*
* @param track a given track object
* @return a filled in ContentValues object
*/
ContentValues createContentValues(Track track);
/**
* Creates a location object from a given cursor.
*