Android Schedule Notofication from morning 10 to 6?

Have created app for hotel which will advertise url and notifications will be recived by user whoever come near to it .But i want to ads only when the hotel open example 8 am to8 pm like this …Is there way i can schedule notifications ?

Hello Folks, In this tutorial we will discuss how we can schedule local notification in android. Its a super easy job and involves few android components.

I have created a demo project for this tutorial you can find it on github.

Components involved to schedule local notification in android

BroadCastReceiver
AlarmManager
Notification Service
PendingIntent
We will discuss these components whenever we will come across them in the code.