In this video, I’ll show you how to display Notification on your phone.
Notification is very general function for mobile apps, so there’s no harm in knowing about it 🙂
There are 3 steps to show notification:
1. Set Alarm (AlarmManager)
2. Receive Alarm (BroadcastReceiver)
3. Notify (NotificationManager & Notification.Builder)
Hope you enjoy!
* Some methods are deprecated in API 26, but you can still use them.
I selected minimum API 16 in this video, so I left them as they were.
Android Studio: 3.0.1