Android check for date has changed

I am trying to update the android application based on the date.
So, for example, if a certain date displays some information about that date.
Or when a new week arrives, do a couple of things in the background.

How to do it?
Am I constantly checking the date? Is there a “flag” when the date has changed?

Thank.

+4
source share
1 answer

You can use a brodcast receiver like ACTION_DATE_CHANGED

More information can be found at https://developer.android.com/reference/android/content/Intent.html#ACTION_DATE_CHANGED

:

1) onReceive. 2) , , :

Android - ?

+3

All Articles