Hi I am working on application where I have set the notification on user entered date and time through background service. Now I want to set notification/alarm daily at 6 pm to ask user does he want to add another entry? How can I achieve this? Should I use the same background service or Broadcast receiver? Please give me better solution for that and tutorial will be great idea. Thanks in advance.
相关问题
- How can I create this custom Bottom Navigation on
- Bottom Navigation View gets Shrink Down
- How to make that the snackbar action button be sho
- Listening to outgoing sms not working android
- How to create Circular view on android wear?
N.V.Rao's answer is correct, but don't forget to put the
receiver
tag inside the application tag in the AndroidManifest.xml file:First set the Alarm Manager as below
Create an Broadcast Receiver Class "AlarmReceiver" in this raise the notifications when onReceive
and in the manifest file, register receiver for the AlarmReceiver class:
No special permissions are required to raise events via alarm manager.