title: Google map and passive provider
body: <p>I'm working with passive provider, with this code.</p>
  
  <pre><code>Intent intent = new Intent(PASSIVE_ACTION);
  PendingIntent pi = PendingIntent.getBroadcast(this, 0, intent, PendingIntent.FLAG_UPDATE_CURRENT);
  mLocationManager = (LocationManager) getSystemService(LOCATION_SERVICE);
  mLocationManager.requestLocationUpdates(LocationManager.PASSIVE_PROVIDER, 0, 0, pi);
  </code></pre>
  
  <p>and I define broadcast receiver in AndroidManifest.xml</p>
  
  <pre><code>&lt;receiver
      android:name="passiveLocationReceiver"
      android:enabled="true" &gt;
          &lt;intent-filter&gt;
              &lt;action android:name="com.passive_location_update" /&gt;
          &lt;/intent-filter&gt;
  &lt;/receiver&gt;
  </code></pre>
  
  <p>passiveLocationReceiver is </p>
  
  <pre><code>public class passiveLocationReceiver extends BroadcastReceiver {
  
      @Override
      public void onReceive(Context context, Intent intent) {
          String action = intent.getAction();
          if (!PASSIVE_ACTION.equals(action))
              return;
  
          Log.d("chitacan","Passive Provider Event!!!");
          }
      }
  </code></pre>
  
  <p>This code works fine when other geo location applications(facebook, foursquare.. etc)
  But with "Google Map" application, It doesn't.(<a href="http://developer.android.com/reference/android/location/LocationManager.html#PASSIVE_PROVIDER" rel="nofollow">d.android.com</a> explains "PASSIVE_PROVIDER" that can be updated when other application requests locations.)</p>
  
  <p>Even though I can see my location with "Google Map" application, but I can't get any event from passive provider.(I can't see passiveLocationReceiver's log message.)</p>
  
  <p>Well, I tried to dump LocationManager's state in command line,</p>
  
  <pre><code>$adb shell dumpsys location
  </code></pre>
  
  <p>However LocationManager's state didn't change anything. Seems like "Google Map" Application
  doesn't use LocationManager.</p>
  
  <p>Is there any way to get passive event when "Google Map" application updates my location??
  or Am I doing something wrong??</p>