title: How do I receive the system broadcast when Location has changed?
body: <p>I wrote the code below, but it's not working. Can anybody help me? 
  I just want to passively receive Location  changes.I want to run my application in background whenever it gets an Location changed system broadcast but here with this code its not displaying the log.</p>
  
  <p><strong>Here is my Manifest</strong></p>
  
  <pre><code>&lt;uses-permission android:name="android.permission.ACCESS_COARSE_UPDATES"/&gt; 
  &lt;uses-permission android:name="android.permission.ACCESS_COARSE_LOCATION"/&gt;
  &lt;uses-permission android:name="android.permission.ACCESS_FINE_LOCATION"/&gt; 
  &lt;receiver android:name=".LocationReceiver"
                android:enabled="true" &gt;           
     &lt;intent-filter&gt;
          action android:name="android.location.PROVIDERS_CHANGED"               
          &lt;/intent-filter&gt;
   &lt;/receiver&gt;
  </code></pre>
  
  <p><strong>Not getting the Log</strong></p>
  
  <pre><code>     public class LocationReceiver extends BroadcastReceiver {
       public static final String PROVIDERS_CHANGED_ACTION="android.location.PROVIDERS_CHANGED";  
  
  @Override
  public void onReceive(Context context, Intent intent) {
      // TODO Auto-generated method stub
      if (intent.getAction().equals(PROVIDERS_CHANGED_ACTION)) {
          Log.d("---------log--------", "Location Changed");
          myAction();
  
      }
  }
  </code></pre>