Proyectos de Subversion Android Microlearning

Rev

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

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