2

How can I cause the Android system to show a notification from my app, at a daily hour? Do I need a service, and if so how do I handle it Thanks

orelzion
  • 2,452
  • 4
  • 30
  • 46

1 Answers1

6

you don't need a service. You can use the AlarmManager to get a Broadcast at required time. Listen to it in your BroadcastReciever and send your Notification there. After Notification was send, register another alarm in it.

Rafael T
  • 15,401
  • 15
  • 83
  • 144
  • 2
    for this you must register another BroadcastReciever and Recieve the "BootCompleted" Broadcast to register a new Alarm. look here how this is done http://stackoverflow.com/questions/2784441/trying-to-start-a-service-on-boot-on-android – Rafael T Oct 30 '11 at 16:18