Paolo Donato Navarro
Paolo Donato Navarro

Reputation: 149

Android notifications on different days of the week

I want to build notifications that are showed recurrently in specific days of the week, for example, I want X notification every monday and friday of each week. I know how to set intervals with alarms, but not how to select specific days

Upvotes: 0

Views: 269

Answers (2)

Afshin Samiei
Afshin Samiei

Reputation: 129

The logical way to control push notification timing is from server side but if you want to do it on your phone you must work with android os date and time and Java CALENDAR class.

Upvotes: 1

rya
rya

Reputation: 1506

You can set repeating alarm for every day and show notification only those days that are needed on onReceive() function of the alarm BroadcastReceiver.

Upvotes: 2

Related Questions