This example is for create alarm by date and time .... and main thing is when app is open at that time custom dialog is open and when app is close at that time notification will show in status bar ... thank you