I want my application to push a notification at a particular time set by the user(similar to an alarm clock app). Which broadcast should be detected by my receiver?
Asked
Active
Viewed 211 times
0
David Wasser
- 93,459
- 16
- 209
- 274
Shiva Ganesh
- 1
- 2
-
https://stackoverflow.com/questions/5481386/date-and-time-change-listener-in-android – Sanjay Ranavaya Jul 15 '20 at 12:43
-
will this work for a particular time set in the app....Like for example if i want a notification exactly at 8:30 AM? – Shiva Ganesh Jul 15 '20 at 12:52
1 Answers
0
You need to set an alarm using AlarmManager. There is no standard broadcast event that you can listen for. There are tons of examples of how to do this, just search for them.
David Wasser
- 93,459
- 16
- 209
- 274