I have a Notification.Builder
that sends a message to the notification bar as soon as I click a button. Is there a way to have the notification appear at a selected time? I looked through the Android Documentation, but didn't see anything that seemed like it would work.
Here's the code snippet I have:
Notification n = new Notification.Builder(this)
.setContentTitle("Random title")
.setContentText("Random text")
.setSmallIcon(R.drawable.abc_ic_go_search_api_mtrl_alpha)
.setContentIntent(pIntent).build();
NotificationManager notificationManager = (NotificationManager) getSystemService(NOTIFICATION_SERVICE);
notificationManager.notify(0, n);
Thanks!