From cd8b3ff2ab57b5307c98271d2919532e29759242 Mon Sep 17 00:00:00 2001 From: Matthieu Crapet Date: Wed, 27 Sep 2017 10:07:55 +0200 Subject: [PATCH] S10.01-Exercise-SynchronizingTheWeather: more precise comments (2-4) Signed-off-by: Matthieu Crapet --- .../com/example/android/sunshine/sync/SunshineSyncTask.java | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/S10.01-Exercise-SynchronizingTheWeather/app/src/main/java/com/example/android/sunshine/sync/SunshineSyncTask.java b/S10.01-Exercise-SynchronizingTheWeather/app/src/main/java/com/example/android/sunshine/sync/SunshineSyncTask.java index 95d1585e86..566dc8c5ad 100644 --- a/S10.01-Exercise-SynchronizingTheWeather/app/src/main/java/com/example/android/sunshine/sync/SunshineSyncTask.java +++ b/S10.01-Exercise-SynchronizingTheWeather/app/src/main/java/com/example/android/sunshine/sync/SunshineSyncTask.java @@ -1,4 +1,6 @@ // TODO (1) Create a class called SunshineSyncTask // TODO (2) Within SunshineSyncTask, create a synchronized public static void method called syncWeather -// TODO (3) Within syncWeather, fetch new weather data -// TODO (4) If we have valid results, delete the old data and insert the new \ No newline at end of file +// with context argument +// TODO (3) Within syncWeather, fetch new weather data (using NetworkUtils and OpenWeatherJsonUtils helpers) +// TODO (4) If we have valid results, delete the old data and insert the new (using bulkInsert method +// of Sunshine's content provider)