Proyectos de Subversion Android Microlearning - Nuevo Interface

Rev

Rev 8 | Rev 11 | Ir a la última revisión | Mostrar el archivo completo | | | Autoría | Ultima modificación | Ver Log |

Rev 8 Rev 9
Línea 345... Línea 345...
345
 
345
 
346
                Calendar calendar = Calendar.getInstance();
346
                Calendar calendar = Calendar.getInstance();
347
                Date date = calendar.getTime();
347
                Date date = calendar.getTime();
348
                SimpleDateFormat simpleDateFormat = new SimpleDateFormat(Constants.FORMAT_DATETIME_SERVICE);
348
                SimpleDateFormat simpleDateFormat = new SimpleDateFormat(Constants.FORMAT_DATETIME_SERVICE);
-
 
349
                String  addedOn = simpleDateFormat.format(date);
-
 
350
 
-
 
351
                //Elimino antes de guardar.
-
 
352
                iTwoGetSkills.getDatabase().getAnswerDao().removeAll();
-
 
353
                iTwoGetSkills.getDatabase().getQuestionDao().removeAll();
-
 
354
                iTwoGetSkills.getDatabase().getQuizDao().removeAll();
-
 
355
                iTwoGetSkills.getDatabase().getSlideDao().removeAll();
-
 
356
                iTwoGetSkills.getDatabase().getCapsuleDao().removeAll();
-
 
357
                iTwoGetSkills.getDatabase().getTopicDao().removeAll();
349
                String  addedOn = simpleDateFormat.format(date);
358
                iTwoGetSkills.getDatabase().getUserExtendedDao().removeAll();
Línea 350... Línea 359...
350
                iTwoGetSkills.syncFromServer(data);
359
                iTwoGetSkills.syncFromServer(data);
351
 
360