BroadcastReceiver does not receive TIME_SET, DATE_CHANGED actions

I try catch date and time changing. For this I registered receive

<receiver android:enabled="true" android:name=".model.ChangeTimeReceiver">
                <action android:name="ANDROID.INTENT.ACTION.DATE_CHANGED"/>
                <action android:name="ANDROID.INTENT.ACTION.TIME_SET"/>

But method onRecive() is not being called by system

Code of my receiver

public class ChangeTimeReceiver extends BroadcastReceiver {
    public void onReceive(Context context, Intent intent) {
        Log.d("ChangeTimeReceiver", "onReceive")

Source: android

Leave a Reply

This site uses Akismet to reduce spam. Learn how your comment data is processed.