I tried setting NotificationCompat.Builder.SetWhen() to schedule a local notification. But that didn't work. The notifications was delivered immediately. It seems SetWhen() is used to set the timestamp of the notification but not to schedule its delivery time.
Then I was reading about AlarmManager and Handler. But I was not able to get to how to use either of them. From the description it appears Handler is more apt for my requirement. How to use it? Is there any sample to use either AlarmManager or the Handler API?