Na verdade os 2...
Use o alarmmanager para iniciar um Service (ou melhor ainda um IntentService). Mas cuidado, que o smartphone pode voltar a dormir antes do seu serviço terminar, https://github.com/commonsguy/cwac-wakeful
Lúcio Maciel
luciofm@gmail.com
luciofm@gmail.com
2013/6/24 <fdacosta1978@gmail.com>
Alarm manager! EverEnviado pelo meu aparelho BlackBerry® da VivoFrom: "Rodrigo Alves da S. Cardoso" <r.cardoso1984@gmail.com>Date: Mon, 24 Jun 2013 20:30:03 -0300ReplyTo: androidbrasil-dev@googlegroups.comSubject: [androidbrasil-dev] alarmmanager ou serviceGalera, qual seria a melhor opção para um app q dispara uma notificação na data e hora escolhida pelo usuário?--Estilo o ColorNote aonde podemos escolher e qndo chega na hora, ele gera a notificaçao...
Rodrigo Cardoso
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/groups/opt_out.
--
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/groups/opt_out.
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/groups/opt_out.






0 comentários:
Postar um comentário