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">
            <intent-filter>
                <action android:name="ANDROID.INTENT.ACTION.DATE_CHANGED"/>
                <action android:name="ANDROID.INTENT.ACTION.TIME_SET"/>
            </intent-filter>

But method onRecive() is not being called by system

Code of my receiver

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


Source: android

Leave a Reply