Reputation: 603
I am not able to receive the ACTION_TIME_CHANGED
intent in my broadcast receiver
class when I change the time from the phone. Is there anything in particular that I need to add in android.manifest?
I have already added
in broadcast receiver class:
else if((intent.getAction().equals(Intent.ACTION_TIME_CHANGED)) ||(intent.getAction().equals(Intent.ACTION_DATE_CHANGED ))){
Log.d("ContactsAppReceiver", "ACTION_TIME_CHANGED");
}
And in manifest.xml file. :
<action android:name="android.intent.action.ACTION_TIME_CHANGED"/>
Upvotes: 1
Views: 2742
Reputation: 7320
Add to manifest:
<action android:name="android.intent.action.TIME_SET" />
Upvotes: 2