Created
May 21, 2012 13:25
-
-
Save Axxiss/2762303 to your computer and use it in GitHub Desktop.
Log synchornization
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public static void syncLog(Context context, String user, String authToken) { | |
Log.i(TAG, "Syncing VisioStorm log"); | |
ContentResolver cr = context.getContentResolver(); | |
Cursor cursor = PendingMovie.getAll(cr); | |
API.setUser(user); | |
API.setAuthToken(authToken); | |
if (cursor.getCount() > 0) { | |
while (cursor.moveToNext()) { | |
PendingMovie pending = new PendingMovie(cursor); | |
pending.upload(cr); | |
} | |
} | |
cursor.close(); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment