Ok Geovani, follows code of BroadcastReceiver (onReceiver):
...
Routine routine = routineModel.getNextRoutine(USER_ID);
...
notification.addNotification(...);
routine.setTime(newDate.getTimeInMillis());
routineModel.updateRoutine(routine);
Log.i(TAG_LOG, '...');
routine = routineModel.getNextRoutine(USER_ID); // At that point the instance of the DB not yet finished the update which takes the routine to the end of the queue.
Calendar calendar = Calendar.getInstance();
calendar.setTimeInMillis(routine.getTime());
Alarm.setAlarm(context, calendar);
Rodrigo Medeiros
2014-09-16 21:49 GMT-03:00 Geovani **Leia a documentação oficial** de Souza <geovanisouza92@gmail.com>:
Let's see the code.--
You received this message because you are subscribed to the Google Groups "Android Brasil - Dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email to androidbrasil-dev+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
You received this message because you are subscribed to the Google Groups "Android Brasil - Dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email to androidbrasil-dev+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.






0 comentários:
Postar um comentário