title: Android System date changed event
body: <p>I know this question has been asked many times but i am unable to find the right direction. I have registered <code>BroadcastReceiver</code> which I want to trigger when the <code>Android System Date</code> is changed automatically but its not firing. I have used the following approaches:</p>
  
  <h2>1</h2>
  
  <pre><code>IntentFilter intentFilter = new IntentFilter();
  intentFilter.addAction(Intent.ACTION_TIME_CHANGED);
  registerReceiver(new DateTimeChangeReceiver (), intentFilter);
  </code></pre>
  
  <h2>2-> AndroidManifest.xml</h2>
  
  <pre><code>&lt;receiver android:name=".DateTimeChangeReceiver "&gt;
  &lt;intent_filter&gt;
      &lt;action android:name="android.intent.action.DATE_CHANGED"/&gt;
  &lt;/intent_filter&gt;
  &lt;/receiver&gt;
  </code></pre>
  
  <h2>DateTimeChangeReceiver</h2>
  
  <pre><code>import android.content.BroadcastReceiver;
  import android.content.Context;
  import android.content.Intent;
  import android.widget.Toast;
  
  public class DateTimeChangeReceiver extends BroadcastReceiver{
  
      @Override
      public void onReceive(Context context, Intent intent) {
          // TODO Auto-generated method stub
          Toast.makeText(context, "Date changed", Toast.LENGTH_SHORT).show();
      }
  
  }
  </code></pre>
  
  <p>In  both cases, reciever is not being triggered. It only shows the notification when manually time is being set. Can anyone please point me out what I am missing?</p>
  
  <p>Thanks in advance.</p>